TanStackT
TanStack2w ago
5 replies
full-green

Non-hook useServerFn alternative

Is there an alternative (non-hook) utility that is functionally equivalent to what useServerFn gives you?

I want to define my TanStack Query query and mutation options as self-contained options that I just import and use where needed. These queries and mutations all use server functions.
Was this page helpful?