Which project does this relate to?
Start
Describe the bug
When calling a server function from another server function, the payload is passed incorrectly, wrapped in an object shaped like { method: "POST", payload: ... }
Your Example Website or App
https://stackblitz.com/edit/tanstack-router-t7wcgv?file=app%2Froutes%2Findex.tsx
Steps to Reproduce the Bug or Issue
- Go to app/routes/index.tsx route
- Press "test server function" button
- Compare the results of the function being called directly and the function being called inside another server function
Expected behavior
As a user, I expect the payload to be the same calling the function directly and calling the function from another function
Screenshots or Videos
No response
Platform
- OS: macOS
- Browser: Edge
- Version: 128.0.2739.79
Additional context
No response