Xulo
Sanity Navigation Error: TypeError: can't access property
Found it: I used the wrong syntax:
groq
[_type == "project" && slug.current == "${slug}"]{
...
Instead of:
const query = groq`[_type == "project" && slug.current == $slug][0]{
_id,
title,
description
};
const { data: project } = await useSanityQuery<Project>(query, {
slug: route.params.name,
});
Now it works!12 replies
SSR Issue: Empty Data on Page Reload with Nuxt 3 and Strapi useAsyncData
I have posted an issue on Strapi server here
https://discord.com/channels/811989166782021633/1110281756227154061/1110811555177697342
5 replies
SSR Issue: Empty Data on Page Reload with Nuxt 3 and Strapi useAsyncData
Yes I got some hydration issues, but these where because I was using a div inside a p tag.
Here was the issue https://discord.com/channels/473401852243869706/1103357337793736785/1110685212263845978
Now all my hydration problems are fixed, but I’m still facing this issue.
I tried using useFetch and noticed it does work with online production Strapi but not when fetching localhost:1337
5 replies