-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
status could also be |
Beta Was this translation helpful? Give feedback.
-
When you need to load data once e.g. on the application start, I personally like to use "Gate" component. The role of the gate is to stop futher rendering as long as data is not loaded yet. When data is finally loaded I use context&customHook to read my initial data. At this point Im sure that my data will not be undefined. You can check a PoC here: |
Beta Was this translation helpful? Give feedback.
status could also be
idle
in which case data would be undefined.