We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
null
Router
All details are found in this discussion thread on Discord - https://discord.com/channels/719702312431386674/1306957125246914590
The crust of the matter is that you aren't able to return null from a createServerFn call.
createServerFn
const fn = createServerFn().handler(async () => { return null }) await fn(); // undefined
https://discord.com/channels/719702312431386674/1306957125246914590
Create a server function returning null and see that at runtime it does not return the value, instead, it returns undefined.
undefined
The returned null value from the server function should correctly get piped down to the caller.
No response
N/A
The text was updated successfully, but these errors were encountered:
Need to investigate the issue.
The issue/bug has been investigated and a reproduction has been created.
Sorry, something went wrong.
No branches or pull requests
Which project does this relate to?
Router
Describe the bug
All details are found in this discussion thread on Discord - https://discord.com/channels/719702312431386674/1306957125246914590
The crust of the matter is that you aren't able to return
null
from acreateServerFn
call.Your Example Website or App
https://discord.com/channels/719702312431386674/1306957125246914590
Steps to Reproduce the Bug or Issue
Create a server function returning
null
and see that at runtime it does not return the value, instead, it returnsundefined
.Expected behavior
The returned
null
value from the server function should correctly get piped down to the caller.Screenshots or Videos
No response
Platform
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: