router icon indicating copy to clipboard operation
router copied to clipboard

solid start with solid query client hydrate/dehydrate

Open iAverages opened this issue 10 months ago • 1 comments

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

  1. install @tanstack/solid-router-with-query
  2. install fails, package does not exist!

Expected behavior

  1. install @tanstack/solid-router-with-query
  2. install succeeds!

Screenshots or Videos

No response

Platform

  • Version: 1.120.13

Additional context

No response

iAverages avatar Jun 05 '25 18:06 iAverages

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

brenelz avatar Jun 10 '25 01:06 brenelz

This is WIP still, but not forgotten. The next step is

  • #4600

birkskyum avatar Jul 10 '25 14:07 birkskyum

Hello do we have any news about the solid-router-with-query package ?

carere avatar Jul 14 '25 17:07 carere

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

birkskyum avatar Jul 14 '25 17:07 birkskyum

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

brenelz avatar Oct 22 '25 00:10 brenelz