Replies: 1 comment
-
Components don't render until the loaders have completed so it should be defined initially. If you're not seeing this could you provide a simplified reproeduction? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I have a screen with this loader attached:
Imagine I have the two lines below:
My loader returns an object of two objects, itr_roles and roles. I want selected roles to be an array with the keys of itr_roles. However, itr_roles is initially undefined until the loader finishes so it doesn't seem like I can set the initial state like that. What is the optimal way to go about taking data from the loader and setting some state to handle it? I am thinking of doing something like this
However, I am not sure that is the way to go about it, and would appreciate any feedback or guidance. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions