streamEvents example
Hello guys! I was trying to follow the example from here: https://tanstack.com/start/latest/docs/framework/react/server-functions
Server Functions | TanStack Start React Docs
What are Server Functions? Server functions allow you to specify logic that can be invoked almost anywhere (even the client), but run only on the server. In fact, they are not so different from an API...
6 Replies
frail-apricotOP•2mo ago
But when i call the Function i get:
Is it some setting i need to enable? I have the default files from create-tsrouter-app
genetic-orange•2mo ago
might be a bug
can you please create a github issue and link a complete example repository?
frail-apricotOP•2mo ago
Sure! Will do
Yea, I think even if I put response: raw, it still tries to parse it like it would be “data”
Ok, sorry! I was using it in a wrong way. It seems to work without getting that error
But one thing that is still missing is the fact that I cannot stop the request. It seems
signal.aborted
is never changed.frail-apricotOP•2mo ago
I think there is an open issue for it: https://github.com/TanStack/router/issues/3490
Even if, at that time, it worked for get requests
GitHub
Server Fn Signal and API route (request.signal) does not actually f...
Which project does this relate to? Start Describe the bug When canceling a server function or fetch to API Route, either by abortController.abort() or by refreshing / closing the tab to disconnect....
genetic-orange•2mo ago
is this in dev, prod or both?
please can you add your insights (version, etc) in that github issue?
frail-apricotOP•2mo ago
Sure. Will do!
Done. Thank you!