We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://react.dev/reference/react/StrictMode
Using React StrictMode causes effects to re-run an extra time to find bugs caused by missing effect cleanup. This causes the following code to not work as expected: https://github.com/atlassian/pragmatic-drag-and-drop/blob/main/packages/react-beautiful-dnd-migration/src/draggable/index.tsx#L250
const isMountedRef = useRef(true); useEffect(() => { return () => { isMountedRef.current = false; }; }, []);
This code throws an error in development mode: https://github.com/atlassian/pragmatic-drag-and-drop/blob/main/packages/react-beautiful-dnd-migration/src/draggable/index.tsx#L422
rbdInvariant(isMountedRef.current, 'isMounted onBeforeDragEnd');
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
https://react.dev/reference/react/StrictMode
Using React StrictMode causes effects to re-run an extra time to find bugs caused by missing effect cleanup. This causes the following code to not work as expected: https://github.com/atlassian/pragmatic-drag-and-drop/blob/main/packages/react-beautiful-dnd-migration/src/draggable/index.tsx#L250
This code throws an error in development mode: https://github.com/atlassian/pragmatic-drag-and-drop/blob/main/packages/react-beautiful-dnd-migration/src/draggable/index.tsx#L422
The text was updated successfully, but these errors were encountered: