T
TanStack5mo ago
stormy-gold

has anyone persisted a query client on TSS?

looking for some guidance on this... i keep getting all sorts of weird hydration errors when trying to do this.
5 Replies
stormy-gold
stormy-goldOP5mo ago
more specifically I get weird errors like this
Diagnostics:
1. Type
'import("/Users/dan/Developer/personal/<APPNAME>/node_modules/@tanstack/react-query/node_modules/@tanstack/query-core/build/modern/hydration-B_mC2U5v").b'
is not assignable to type
'import("/Users/dan/Developer/personal/<APPNAME>/node_modules/@tanstack/query-core/build/modern/hydration-BDFa62My").b'

Property
'#private'
in type
'QueryClient'
[2322]
Diagnostics:
1. Type
'import("/Users/dan/Developer/personal/<APPNAME>/node_modules/@tanstack/react-query/node_modules/@tanstack/query-core/build/modern/hydration-B_mC2U5v").b'
is not assignable to type
'import("/Users/dan/Developer/personal/<APPNAME>/node_modules/@tanstack/query-core/build/modern/hydration-BDFa62My").b'

Property
'#private'
in type
'QueryClient'
[2322]
P.S. GCTime and maxAge are both 24hours
stormy-gold
stormy-goldOP5mo ago
No description
stormy-gold
stormy-goldOP5mo ago
with something like this ^ on line 16 just to update, the query client is persisting here, but it just has this very weird type error
fair-rose
fair-rose5mo ago
please provide a complete minimal example
fair-rose
fair-rose2mo ago
Hey @dan myles , did you managed to get it working ?

Did you find this page helpful?