Dog
Page appearing empty when navigating (but not directly)
On my website, https://nuxt.whitecoastrailway.com, clicking on News and Jobs in the navigation return pages with no actual content, only the header and footer (which itself is covered by the header).
Using
useAsyncData
just errors with Cannot stringify a function
, and the documentation for the sanity module says that useSanityQuery
wraps useAsyncData
, so there would seemingly be no point in this anyway.
I'm using Sanity with the official module as my CMS to display news posts and job listings, and almost the same code is used is used on each index page. Here's the script in the jobs page: (bit messy but idc)
9 replies
[closed] Page appearing empty when navigating (but not directly)
On my website, https://nuxt.whitecoastrailway.com, clicking on News and Jobs in the navigation return pages with no actual content, only the header and footer (which itself is covered by the header).
I'm using Sanity with the official module as my CMS to display news posts and job listings, and almost the same code is used is used on each index page. Here's the script in the jobs page: (bit messy but idc)
24 replies