New:Socket for Asana Is Now Available.Learn more
Get Started

@tanstack/solid-router-ssr-query

Package Overview
Dependencies
Maintainers
3
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
This package has malicious versions linked to the ongoing "Mini Shai-Hulud" supply chain attack.

Affected versions:

1.166.151.166.18
View campaign page

@tanstack/solid-router-ssr-query

Modern and scalable routing for Solid applications

rc
Source
npmnpm
Version
2.0.0-rc.5
Version published
Weekly downloads
4.2K
-50.59%
Maintainers
3
Weekly downloads
 
Created
Source
TanStack Solid Router

@tanstack/solid-router-ssr-query

[!IMPORTANT] Deprecated on the Solid v2 line. Solid 2.0's native channels make this package's transport unnecessary: QueryClientProvider in @tanstack/solid-query v6 serializes the request's cache into Solid's hydration registry during SSR and primes the client cache from it — running this package alongside it ships every query payload twice. The two runtime conveniences it bundled are each a few lines of userland composition on public APIs (see the Solid Start e2e apps under e2e/solid-start/): wrap the router tree in QueryClientProvider via the router's Wrap option, and hand cache-driven redirect() errors to router.navigate from the caches' config.onError.

SSR query integration for TanStack Solid Router and TanStack Solid Query.

This package provides seamless integration between TanStack Router and TanStack Query for server-side rendering in Solid applications.

Installation

npm install @tanstack/solid-router-ssr-query
# or
pnpm add @tanstack/solid-router-ssr-query
# or
yarn add @tanstack/solid-router-ssr-query

Usage

import { QueryClient } from '@tanstack/solid-query'
import { createRouter } from '@tanstack/solid-router'
import { setupRouterSsrQueryIntegration } from '@tanstack/solid-router-ssr-query'

const queryClient = new QueryClient()
const router = createRouter({
  routeTree,
  context: { queryClient },
})

setupRouterSsrQueryIntegration({
  router,
  queryClient,
})

License

MIT

Keywords

solidjs

FAQs

Package last updated on 03 Sep 2026

Related posts