More generic SSR support
See original GitHub issueHi, thanks for this library! I’m maintaining a couple of packages for SSR with Vite and I’m interested in supporting vue-query
. I see the SSR support is experimental so I would like to add some feat requests to make it easier to integrate with other tools.
It would be great if we could create and provide a Query Client outside of a component, just like any other Vue library that is installed when creating the app:
const queryClient = new QueryClient({ ... })
app.use(queryClient) // This would use queryClient.install method to run `app.provide(..., queryClient)`
Everything else could probably work in the same way, but this gives us the ability to export this created client to pass it to any SSR tool we need (for callinghydrate
or dehydrate
), which are normally outside of component scopes.
Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
SSRs (Special Service Requests) - Travelport
A Special Service Request (SSR) can be made in a PNR on behalf of one traveler, several travelers, or all travelers for specific...
Read more >Special Services Request (SSR) codes and airline-specific ...
List of all Special Service Request (SSR) codes, and where to find airline-specific ancillary codes.. Amadeus.
Read more >Special Service Request (SSR) Codes - Wheelchair Travel
When a traveler requests special assistance, the airline codes that into their ticket record using a special service request code, or SSR.
Read more >NextJS / React SSR: 21 Universal Data Fetching Patterns ...
This approach makes the code within the component a lot more readable as it only handles the "happy path". As we're already supporting...
Read more >SSR (Special Service Request) Codes - FlyerTalk Forums
Important note: When you add text to further define a generic SSR code such as OTHS, or SPML, use plain text. You can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be fixed in https://github.com/DamianOsipiuk/vue-query/releases/tag/v1.10.0
Same problem here https://github.com/DamianOsipiuk/vue-query/discussions/66