solid start with solid query client hydrate/dehydrate
Which project does this relate to?
Start
Describe the bug
Currently with react-start, we have the package @tanstack/react-router-with-query which will correctly hydrate/dehydrate the query client during ssr. However, we do not have a solid version of this package meaning queries will run once on server during ssr and again on client on mount.
Your Example Website or App
n/a
Steps to Reproduce the Bug or Issue
- install
@tanstack/solid-router-with-query - install fails, package does not exist!
Expected behavior
- install
@tanstack/solid-router-with-query - install succeeds!
Screenshots or Videos
No response
Platform
- Version: 1.120.13
Additional context
No response
Yeah @birkskyum started working on this but found the Tanstack Query adapter for Solid needed to be updated first.
Not sure how far he got
This is WIP still, but not forgotten. The next step is
- #4600
Hello do we have any news about the solid-router-with-query package ?
It's work in progress, see:
- https://github.com/TanStack/router/pull/4643
- https://github.com/TanStack/router/pull/3893
It'll likely end up as solid-router-ssr-query
Can you try this now? We have merged the solid-router-ssr-query and have an example here
https://github.com/TanStack/router/blob/main/examples/solid/start-basic-solid-query/src/router.tsx#L18