type broken on useServerFn?
Sorry for the AI generated summary, but just wanted a clean reproducible version of the issue:
4 Replies
flat-fuchsiaOP•3h ago
Do we have to do this?
const serverFn = useServerFn(signin$);
always?correct-apricot•3h ago
weird inference issue :ThinkSpin:
what's the problem with that though ?
flat-fuchsiaOP•3h ago
nothing, just following some blog https://www.brenelz.com/posts/using-server-functions-and-tanstack-query/
Using Server Functions and Tanstack Query
A website containing blog posts related to the frontend.
flat-fuchsiaOP•3h ago
and wanted to confirm if this is a bug, if it's by design I think we should add it in the docs that we will loose the type inference otherwise, dont you think so?