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
We should find a way to streamline this so that we only need to load one.
The difference between the two is the __locale parameter. This is necessary because in the sidebar we load navigation menus using useEntityRecords, but in the block we use getEntityRecords. We should probably switch to using useEntityRecords in both places.
The text was updated successfully, but these errors were encountered:
What problem does this address?
We preload two different URLs for navigation, but they are almost identical: https://github.com/WordPress/gutenberg/blob/trunk/lib/compat/wordpress-6.3/navigation-block-preloading.php#L31
We should find a way to streamline this so that we only need to load one.
The difference between the two is the __locale parameter. This is necessary because in the sidebar we load navigation menus using
useEntityRecords
, but in the block we usegetEntityRecords
. We should probably switch to usinguseEntityRecords
in both places.The text was updated successfully, but these errors were encountered: