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
next-dev.js:20 Warning: Cannot update a component (`LayerContextProvider`) while rendering a different component (`Frame`). To locate the bad setState() call inside `Frame`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render
at Frame (webpack-internal:///../../packages/core/dist/esm/index.js:510:18)
at div
at Content (webpack-internal:///../../node_modules/react-frame-component/lib/Content.js:30:5)
at iframe
at Frame (webpack-internal:///../../node_modules/react-frame-component/lib/Frame.js:46:5)
at div
at div
at div
at Viewport (webpack-internal:///./components/editor/Viewport/index.tsx:26:11)
at Events (webpack-internal:///../../packages/core/dist/esm/index.js:2345:19)
at Editor (webpack-internal:///../../packages/core/dist/esm/index.js:2436:19)
To Reproduce
Adding a react-frame-component just ouside the <Frame />
Describe the bug
To Reproduce
Adding a react-frame-component just ouside the
<Frame />
Running
yarn start
inexample/landing
I briefly checked the code and found that
craft.js/packages/core/src/render/Frame.tsx
Lines 39 to 60 in 46eb68e
these lines should be updated in a useEffect instead of render?
Expected behavior
No warning
Your environment
The text was updated successfully, but these errors were encountered: