API Request not being triggered
Hey all. I have the following composable:
When I navigate to the route
/communities
from /
, I run the following code on the communities page: In my script setup
element of the page. For whatever reason, a network request is never kicked off, and the console logs from the composable are all null (bar the URL being logged, which works when I paste the URL into the browser)
Any ideas?5 Replies
I'll note that it works fine, should I refresh while on the
/communities
endpointUnknown User•16mo ago
Message Not Public
Sign In & Join Server To View
See I use
useLazyFetch
in another Nuxt 3 project, with 0 issues. Main difference is it uses client only for a higher level wrapper
Would that make a difference?Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
I'll give it a go, thanks for the suggestion