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
There's a useEffect hook that runs in the megamenu that gets used to update the links. The issue is that this is that this hook runs immediately when the component mounts (because of the empty dependency array), and it's asynchronous so it discards the prefetched data. It also uses the full API URL for the SSW mega menu endpoint, making it impossible to preview changes to the MegaMenu in staging.
Todo:
Remove the megamenu data fetch from the megamenu repo
Communicate with the SSW Rules team to check whether the megamenu props on Rules are passed in statically
Communicate with the SSW People team to check whether the megamenu props on Rules are passed in statically
The text was updated successfully, but these errors were encountered:
CC: @wicksipedia
Description:
There's a useEffect hook that runs in the megamenu that gets used to update the links. The issue is that this is that this hook runs immediately when the component mounts (because of the empty dependency array), and it's asynchronous so it discards the prefetched data. It also uses the full API URL for the SSW mega menu endpoint, making it impossible to preview changes to the MegaMenu in staging.
Todo:
The text was updated successfully, but these errors were encountered: