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
Hi, I'm trying to build a Headless WP site using headstartwp.
The menus are not working for me, and after adding some logs the output of the useMenu remains loading=true which means the page rendering did not wait for him to finish.
The thing is that if I change the swr to revalidateOnFocus or revalidateOnMount it works, making be feel like the rendering was completed without waiting for the menu to be SSR.
Any ideas? Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm trying to build a Headless WP site using headstartwp.
The menus are not working for me, and after adding some logs the output of the
useMenu
remainsloading=true
which means the page rendering did not wait for him to finish.The thing is that if I change the swr to
revalidateOnFocus
orrevalidateOnMount
it works, making be feel like the rendering was completed without waiting for the menu to be SSR.Any ideas? Thanks
Beta Was this translation helpful? Give feedback.
All reactions