#has anyone persisted a query client on TSS?

6 messages · Page 1 of 1 (latest)

zenith peak
#

looking for some guidance on this... i keep getting all sorts of weird hydration errors when trying to do this.

#

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]

P.S. GCTime and maxAge are both 24hours

#

with something like this ^ on line 16

zenith peak
#

just to update, the query client is persisting here, but it just has this very weird type error

near plank
#

please provide a complete minimal example