Skip to content

fix: tanstack query provider missing#373

Open
Lighno wants to merge 1 commit intoTanStack:mainfrom
Lighno:fix/tanstack-query-integration
Open

fix: tanstack query provider missing#373
Lighno wants to merge 1 commit intoTanStack:mainfrom
Lighno:fix/tanstack-query-integration

Conversation

@Lighno
Copy link

@Lighno Lighno commented Feb 14, 2026

Summary

This should fix #372, the issue seems to be that QueryProvider was removed, I've manged to find some discussions related to the commit that removed the provider.
One comment linked to these docs so I assumed the intent was to use the ssr query package in the router and tried using it in this PR. Sorry if that wasn't the original intent

Changes

  • Add @tanstack/react-router-ssr-query as a dependency for the query add-on
  • Add some handling specific for tanstack query in the router
  • Add the providers back from earlier commits

I'm not very familiar with this code base and couldn't find a better way to do the following

  • add the @tanstack/react-router-ssr-query to the router
  • pull the query provider conditionally from the add-on (Added an empty provider for now)

Let me know if this is fine or there's a better way to do this, for now I've tested locally and made sure the add-ons work together and by themselves

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removing tanstack query provider causes integration to stop working

1 participant