Open AlexGaudon opened 2 hours ago
I think a future test suite with various serializers (e.g., Rich-Harris/devalue) would be a good idea.
This should be getting addressed in the server functions PR.
Just for clarity, are you talking about https://github.com/TanStack/router/pull/2513
Which project does this relate to?
Start
Describe the bug
Start Server Functions don't respect TanStack Router specified transformers.
See pictures below:
SuperJSON is specified
Function returns a
Date
, with the proper typeLoader gets the incorrect type (the actual value is just a stringified date)
Your Example Website or App
https://github.com/AlexGaudon/start-date-repro
Steps to Reproduce the Bug or Issue
bun install
bun --bun run dev
Expected behavior
As a user, I expect server functions to automatically conform to the transformer specified.
Screenshots or Videos
No response
Platform
Additional context
No response