You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where scrollKey is a prop on the parent component. It works fine if I hard-code a key, but I have these appearing multiple times on a page, and they're always nested, so I can't hard-code a key each time.
The text was updated successfully, but these errors were encountered:
Unless I'm doing something wrong, it doesn't look like component keys can be set dynamically via prop vars?
Here's what I'm trying:
Where
scrollKey
is a prop on the parent component. It works fine if I hard-code a key, but I have these appearing multiple times on a page, and they're always nested, so I can't hard-code a key each time.The text was updated successfully, but these errors were encountered: