Array parameters are JSON-encoded instead of using repeated query parameters #5761
Unanswered
renjianguo666
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current Behavior
When I use navigate() with an array value in search params, TanStack Router serializes it as JSON:
Expected Behavior
I expect array parameters to use repeated query parameters (standard HTTP convention):
My Setup
Schema definition:
Why I Need This
Backend compatibility: My API expects ?role=admin&role=member, not JSON-encoded arrays
Beta Was this translation helpful? Give feedback.
All reactions