TanStackT
TanStack15mo ago
1 reply
wet-aqua

Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null...

It only works when I pass queryFn as queryFn:()=> getTodos() in the clinet component
But gives an error if queryFn: getTodos
Was this page helpful?