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 have problem with fetch data in production mode. I fetch like this: const { data: products, refresh: refreshProducts } = await useAsyncData("sanitary-cabins", () => find<any>("sanitary-cabins", { populate: "*" }) );
In development mode everything is okay. If I go to site data are fetch, but If I refresh page I get 500 error and in network is not any API call. When I fetch API using useFetch everything works fine.
The text was updated successfully, but these errors were encountered:
I encountered the same issue with fetching data in production mode using useAsyncData. In development mode, everything works fine, but I get a 500 error when refreshing the page in production mode, and there are no API calls in the network tab.
Have you managed to resolve this issue? If so, could you please share your solution?
Hi, I have problem with fetch data in production mode. I fetch like this:
const { data: products, refresh: refreshProducts } = await useAsyncData("sanitary-cabins", () => find<any>("sanitary-cabins", { populate: "*" }) );
In development mode everything is okay. If I go to site data are fetch, but If I refresh page I get 500 error and in network is not any API call. When I fetch API using
useFetch
everything works fine.The text was updated successfully, but these errors were encountered: