I am have a component that is used to navigate a list, when I select an item I want to slide into another list, but the same component is used and only difference is state. I am struggling to understand how I can see both states (almost like 2 components) during the slide transition
I have created a simplified example of the issue from a fork of one of the react-spring examples
https://codesandbox.io/s/affectionate-morning-1rdw6
by clicking forward and back a slide transition occurs but the state changes immediately for both the leave animation and the enter animation. I would like to keep current state for leave and new state for enter.
I would also like to be able to dynamically change the direction