You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the useDragAndDrop hook from your library in conjunction with Redux Toolkit, the Redux store is not updating after a drag and drop operation.
I expect the Redux store to update when a drag and drop operation is performed.
I'm using Next.js with React and Redux Toolkit for state management. The issue occurs when I try to drag and drop items on the Kanban board. The local state (columns) updates correctly, but the changes are not reflected in the Redux store.
Any help would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
I had to wrap dragAndDrop to a useEffect to avoid side effects.
When I don't wrap it in a useEffect and the list is updated (e. g. by adding or deleting elements), the existing list elements have their attribute that switch from draggable=true to draggable=false.
may be there is a better way to deal with that, but atm didn't find it in the doc and didn't explore lib code.
When using the
useDragAndDrop
hook from your library in conjunction with Redux Toolkit, the Redux store is not updating after a drag and drop operation.Here's how I used the hook.
I expect the Redux store to update when a drag and drop operation is performed.
I'm using Next.js with React and Redux Toolkit for state management. The issue occurs when I try to drag and drop items on the Kanban board. The local state (
columns
) updates correctly, but the changes are not reflected in the Redux store.Any help would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: