Returning response object no longer works.
I upgraded to 1.82.1 and i have a serverFn that looks like this with the new syntax:
previously this used to fetch the url, but now it does not, and inferred types from calling the function is
any
Is there a new way to do this returning response object?5 Replies
extended-salmon•10mo ago
https://discord.com/channels/719702312431386674/1238170697650405547/1307250041995395083
Seems like this is a common thing
extended-salmon•10mo ago
ah here's the issue https://github.com/TanStack/router/issues/2779
GitHub
Start: createServerFn cannot return raw response objects · Issue #2...
Which project does this relate to? Start Describe the bug Server functions should able to return Raw Response objects. Your Example Website or App https://github.com/nekochan0122/tanstack-start-ret...
extended-salmon•10mo ago
also includes a temporary solution by Nekochan
wise-white•10mo ago
is this a bug or they have changed the design itself?
extended-salmon•10mo ago
Bug