Next.js useSuspenseQuery error
And use
useSuspenseQueryIn the
queryFn I called server actiono directly (exported function from "use server"), but that throws an error saying
Cannot update a component while rendering other component....And when I change
queryFn to fetch function that works just fine.I just don't know what is happening