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
Hello, I'm writing here because I have a problem with TanstackQuery. I tried to implement it in my Solidstart project. But I get this error every time:
(index):347 Uncaught (in promise) Error: experimental_prefetchInRender feature flag is not enabled
Here is an example of my implementation :
export default function Home() {
const query = useQuery(() => ({
queryKey: ["title"],
queryFn: async () => {
const res = await fetch(import.meta.env.VITE_API_URL);
if(!res.ok) throw new Error("Failed to fetch data");
return res.text();
}
}))
return (
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
-
Hello, I'm writing here because I have a problem with TanstackQuery. I tried to implement it in my Solidstart project. But I get this error every time:
(index):347 Uncaught (in promise) Error: experimental_prefetchInRender feature flag is not enabled
Here is an example of my implementation :
export default function Home() {
const query = useQuery(() => ({
queryKey: ["title"],
queryFn: async () => {
const res = await fetch(import.meta.env.VITE_API_URL);
if(!res.ok) throw new Error("Failed to fetch data");
return res.text();
}
}))
return (
{query.data}
)
}
Anyone know if the problem has been solved?
Beta Was this translation helpful? Give feedback.
All reactions