Session

Patterns for a Clean Frontend Application With Valid Data

Since TypeScript types do not persist at runtime, a challenge lies in ensuring the accuracy of data structures when transferred to the frontend of JavaScript applications. Without proper validation, errors may occur unpredictably due to incorrect data structures. To improve this situation, there is a need to check the data immediately after it arrives at the frontend, and we should reject it if it doesn't match our expectations. This results in a clean and slim architecture in the frontend of our applications.

This talk addresses this challenge using the ZOD validation library to validate data upon arrival; birthing a cleaner frontend architecture.

Uchechukwu Azubuko

Lead Frontend Engineer, OneLiquidity

Lagos, Nigeria

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top