Replies: 1 comment 1 reply
-
I would look at useTransition in this case. If you can provide a code sandbox, I can probably assist a little better! |
Beta Was this translation helpful? Give feedback.
1 reply
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 all!
Currently I'm struggling a bit as I'm trying to wrap my head around how I can use
useSprings
to manage a dynamic list of elements (can be added, removed, and deleted).Currently, I am using
RefObject
to keep track of all the incoming items and where their ID is located at in the list of indexes.This works well until I need to delete or remove items from the list. In that case, I have a dead reference to an item that no longer exists.
Is there a way I could use
useSprings
by passing in unique IDs possibly instead ofindex
? or maybe what I'm trying to do is simpler and you might have a suggestion for that?Beta Was this translation helpful? Give feedback.
All reactions