quickest-silver
quickest-silver4mo ago

Type 'QueryClient' is not assignable to

Type 'QueryClient' is not assignable to type 'QueryClientConfig | QueryClient | undefined'.
3 Replies
sensitive-blue
sensitive-blue4mo ago
Hey @David, are you using options.reactQuery.clientConfig to pass your instance of queryClient? Do you have any issues in the runtime if you supress the error with as any or something? Can you share a reproducible example with deps and configuration etc.?
continuing-cyan
continuing-cyan4mo ago
Thanks for the feedback. I deleted the node_modules folder and reinstalled the packages. After that it stopped giving errors. But if you could help me, I would be very grateful. I need to sync all my table states, pagination, filters and search form. I dont want to use a tradition filter inside collumn, I'm using a drawer to show all the fields. Because of this I'm trying to sync and persist the table states. Could you help me with this question? I'm migrating my personal project to refine and trying to implementing this functionality
sensitive-blue
sensitive-blue4mo ago
Its working with query params but does syncWithLocation work for you? It will sync the pagination, sorters and filters for you and store them in URL