[bug]: use transition double render on enter/transition #1937
Replies: 6 comments
-
Your code repo has a lot of code in it, please boil down the issue into its simplest form so it can easily be looked at. At the moments it's hard to even understand what's going on in the code from a glance. EDIT: I can't see the problem in the codesandbox either. |
Beta Was this translation helpful? Give feedback.
-
@joshuaellis cleaned it up You can see the problem better in full screen |
Beta Was this translation helpful? Give feedback.
-
I think the problem is your use of See this example where i used a uuid for the elemnts – https://codesandbox.io/s/bold-forest-xq8md2?file=/src/api.ts let me know your thoughts |
Beta Was this translation helpful? Give feedback.
-
Thanks! This solves the first problem, tho I don't understand how. That key isn't used anywhere in the rendering process. What am I missing here? The second problem of the transition on link click remains. |
Beta Was this translation helpful? Give feedback.
-
FYI, the problem goes away if I remove the |
Beta Was this translation helpful? Give feedback.
-
Inside Your second issue is you're setting the leave prop to PS. because this isn't a bug i'm going to move it to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Which react-spring target are you using?
@react-spring/web
@react-spring/three
@react-spring/native
@react-spring/konva
@react-spring/zdog
What version of react-spring are you using?
9.5.0
What's Wrong?
Instead, the new ones initially fade in stacked with the previous ones.
To Reproduce
https://codesandbox.io/s/competent-blackwell-72jywy?file=/src/DynamicScreen.tsx
Expected Behaviour
Should only render once
Link to repo
https://codesandbox.io/s/competent-blackwell-72jywy?file=/src/DynamicScreen.tsx
Beta Was this translation helpful? Give feedback.
All reactions