Skip to content

Solid query 5: enabled option is not being tracked in SSR #6256

Description

@shiro

Describe the bug

The enabled flag is not working with solid query and Solid Start's SSR.

See my repro for actual example: github repro

Your minimal, reproducible example

https://github.com/shiro/repro-SS-solid-query-enabled-flag

Steps to reproduce

  • use solid start with SSR and latest solid query
  • use solid start's stream or async SSR modes
  • add a simple query, connect the enabled option to a signal that's initially set to false
  • toggle the signal on the client side
  • query does not run

Expected behavior

Query should run once enabled is set to true.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • OS: linux
  • browser: chromium, FF

Tanstack Query adapter

solid-query

TanStack Query version

5.2.1

TypeScript version

4.9.5

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions