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
{{ message }}
Repository navigation
Occur "Maximum update depth exceeded.” in Navigation Screen. #48668
Adding a Custom Link block to the navigation causes "Maximum update depth exceeded.”
This problem does not occur in 15.2.4, it occurs with trunk ( 4945d3f ).
Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
at checkForNestedUpdates (react-dom.js?ver=18:27302:13)
at scheduleUpdateOnFiber (react-dom.js?ver=18:25485:5)
at dispatchSetState (react-dom.js?ver=18:17537:9)
at assignRef (index.js:20:3)
at index.js:128:4
at safelyDetachRef (react-dom.js?ver=18:22918:24)
at commitDeletionEffectsOnFiber (react-dom.js?ver=18:24013:13)
at recursivelyTraverseDeletionEffects (react-dom.js?ver=18:23999:7)
at commitDeletionEffectsOnFiber (react-dom.js?ver=18:24128:11)
at recursivelyTraverseDeletionEffects (react-dom.js?ver=18:23999:7)
Activity
Mamaduka commentedon Mar 2, 2023
I can confirm the bug. This only happens when inserting the "Custom Link" block.
Mamaduka commentedon Mar 2, 2023
Probably related to #48675.
cc @getdave, @scruffian
Mamaduka commentedon Mar 2, 2023
I believe this is the side effect that triggers the update loop.
gutenberg/packages/block-library/src/navigation-link/edit.js
Lines 228 to 235 in a85892e
getdave commentedon Mar 2, 2023
That bug is already on the radar and will be fixed by
#48219
Thanks for reporting.
ntsekouras commentedon Mar 2, 2023
This PR seems to have caused this: #47853 and it's not included in
6.2.Mamaduka commentedon Mar 3, 2023
@getdave, should we close some of the issues as duplicates?
getdave commentedon Mar 3, 2023
@Mamaduka I've marked this Issue as being closed by #48219. So it will be handled.