Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client-only API called on the server side. Run client-only code in onMount, or conditionally run client-only component with <Show>. #8799

Open
huseeiin opened this issue Mar 13, 2025 · 3 comments · May be fixed by #8896

Comments

@huseeiin
Copy link

huseeiin commented Mar 13, 2025

Describe the bug

error in Solid Example: Solid Start Streaming stackblitz example

Your minimal, reproducible example

https://stackblitz.com/github/tanstack/query/tree/main/examples/solid/solid-start-streaming?embed=1&theme=light&preset=node&file=src/index.tsx

Steps to reproduce

https://stackblitz.com/github/tanstack/query/tree/main/examples/solid/solid-start-streaming?embed=1&theme=light&preset=node&file=src/index.tsx

Expected behavior

it runs

How often does this bug happen?

Every time

Screenshots or Videos

Image

Platform

linux, chrome
^5.67.3

Tanstack Query adapter

solid-query

TanStack Query version

^5.67.3

TypeScript version

No response

Additional context

No response

@birkskyum
Copy link
Member

birkskyum commented Mar 30, 2025

@huseeiin , the Client-only API issue can be resolved by updating start/vinxi to:

    "@solidjs/start": "^1.1.3",
    "solid-js": "^1.9.5",
    "vinxi": "^0.5.3"

There is a hydration issue still, but it's another issue.

@TkDodo
Copy link
Collaborator

TkDodo commented Mar 31, 2025

@birkskyum does the linked PR address the issue? If so, we should merge it

@birkskyum
Copy link
Member

@TkDodo it would be best to have all the packages updated to latest, and then merge.

@birkskyum birkskyum linked a pull request Mar 31, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants