Replies: 1 comment 6 replies
-
Never mind, |
Beta Was this translation helpful? Give feedback.
6 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.
-
I have a view with dynamic number of elements inside.
For each element I'm initializing its SharedValue (for translations) inside a loop.
Everything works fine as long as the number of items doesn't change.
Whenever I add another item to my array of items, I get the next error:
"Rendered more hooks than during the previous render."
I have tried instead of using one SharedValue per item, to use a SharedValue object with keys for every item, but failed to do so.
Is there any way to work around this problem?
Beta Was this translation helpful? Give feedback.
All reactions