Replicating v8 useTransition behaviour without 'unique' prop #1027
-
| I've been scouring the docs and issues but can't seem to find an explanation of why the Consider this demo which utilises The behaviour I want:
This is the default behaviour in v8, with keys specified by The current behaviour: Without key:
With
You can test this in the demo by commenting/uncommenting the So what is the best way to replicate the old behaviour? I'm still pretty new to react spring - is there something obvious I'm missing here which makes |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can use
This is more of a That thread has a workaround for blocking navigation to the current location, which I improved upon and added to your example. It works perfectly :) https://codesandbox.io/s/react-spring-1027-tzx05
|
Beta Was this translation helpful? Give feedback.
You can use
location.keyto prevent that.This is more of a
react-routerissue: remix-run/react-router#5362That thread has a workaround for blocking navigation to the current location, which I improved upon and added to your example. It works perfectly :)
https://codesandbox.io/s/react-spring-1027-tzx05