bmcmahen / react-grid-dnd

drag and drop, grid edition. built with react

Home Page:https://codesandbox.io/embed/gracious-wozniak-kj9w8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't perform a React state update

george-of-314 opened this issue · comments

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?