TanStackT
TanStack6mo ago
7 replies
embarrassing-maroon

createServerFn POST vs GET

It seems like the docs don't specify when to use POST vs GET for a server function as you can technically write whatever logic you want inside and it gets serialized automagically using either.

Wanted to know if there's any specific guidance here other than just using your best judgement to determine whether it should be GET vs POST?

Also why is it limited to just GET and POST only?
Was this page helpful?