Site Editor: Navigator
's goTo
function called twice when navigating screens in the sidebar
#51760
Labels
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
[Package] Edit Site
/packages/edit-site
[Type] Bug
An existing feature does not function as intended
When interacting with the sidebar in the site editor, clicking buttons to navigate to a new screen seems to call the underlying
goTo
function twice:NavigatorButton
, used to render those buttonsuseSyncPathWithURL
hook, in particular by this line of codeCalling
goTo
twice can preventNavigator
from working as expected — for example, when navigating to the previous/parent screen, the focus is currently not being restored correctly on the button that triggered the previous navigationcc @youknowriad
The text was updated successfully, but these errors were encountered: