How to set key on route element based on route param? #8521
Unanswered
chuckdries
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi,
I have a route
I want to key the
<Play />
element by the ID param,<Play key={params.id} />
so I get a completely fresh one when the route changes. Is this possible with the v6 api? In previous versions, I'd use therender
propBeta Was this translation helpful? Give feedback.
All reactions