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
Describe the bug
When process.env.NODE_ENV === 'production' setOptions are constantly changing, causing infinite loop.
Expected
It's fine when process.env.NODE_ENV === 'development'. When I logged all the actions
Only one setOptions is found, triggered from requestAnimationFrame in Viewport, which is expected.
Describe the bug
When
process.env.NODE_ENV === 'production'
setOptions are constantly changing, causing infinite loop.Expected
It's fine when
process.env.NODE_ENV === 'development'
. When I logged all the actionsOnly one setOptions is found, triggered from requestAnimationFrame in Viewport, which is expected.
craft.js/examples/landing/components/editor/Viewport/index.tsx
Lines 34 to 37 in 46eb68e
Not expected
when
process.env.NODE_ENV === 'production'
.Extra setState is triggered from the below code, causing infinite loop
craft.js/packages/core/src/editor/Editor.tsx
Lines 89 to 91 in 46eb68e
To Reproduce
Working on it. Changed so many things I need to remove the unnecessary parts.
The text was updated successfully, but these errors were encountered: