bmcmahen / react-grid-dnd

drag and drop, grid edition. built with react
https://codesandbox.io/embed/gracious-wozniak-kj9w8
219 stars 49 forks source link

Can't perform a React state update #71

Open george-of-314 opened 1 year ago

george-of-314 commented 1 year ago

In dev mode "ve got error in browser console

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function. GridDropZone@webpack-internal:///./node_modules/react-grid-dnd/esm/GridDropZone.js:19:14

In server console I see another error

Warning: useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes. at GridDropZone (/home/netsh102093/frontend/app/node_modules/react-grid-dnd/cjs/index.js:326:17)

How to fix this?