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 a component containing craft.js's Element is dragged onto the Frame, the console displays the following warning:
Warning: Cannot update a component (UiTree) while rendering a different component (Ce). To locate the bad setState() call inside Ce, follow the stack trace as described in https://reactjs.org/link/setstate-in-render
This warning doesn't seem to cause any problems, but it's annoying.
When a component containing
craft.js
'sElement
is dragged onto theFrame
, the console displays the following warning:This warning doesn't seem to cause any problems, but it's annoying.
The problematic code is as follows:
craft.js/packages/core/src/nodes/Element.tsx
Lines 45 to 72 in 46eb68e
According to the official description (https://react.dev/reference/react/useState#parameters), the
initialState
should be a pure function, i.e. you can't change the state in it.Your environment
The text was updated successfully, but these errors were encountered: