AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Don't Use Redux for Drag and Drop Pro Tips
Don't use Redux for drag and drop system just don't use immutability. What works really well in my experience is mob x state tree, which is a bit like if you're familiar with Immer,. But more simple where you need immutability in one aspect because every dragon drops system needs an undo redo. You can observe the entire tree and make copies of the tree or patches to the tree as it changes so that becomes your history. Anything else is going to give you performance problems.