psteinroe / supabase-cache-helpers

A collection of framework specific Cache utilities for working with Supabase.

Home Page:https://supabase-cache-helpers.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update @tanstack/react-query. Currently the library is using ^4.0.0 and this is causing issues with the QueryClientProvider not setting a queryClient.

mcornielje090404 opened this issue · comments

The QueryClientProvider on @tanstack/react-query does not work with this library in it's current version. Through testing I've found that it breaks at 4.3.0. 4.2.3 and below work fine.

The issue that occurs is 'No QueryClient set, use QueryClientProvider to set one' seen below.

Screenshot 2023-05-22 at 18 17 56

I would like to have this looked at and a later version of tanstack react-query used in the library if possible.

Hey, thanks for reporting this issue. The 4.3.0 changelog only lists esm support as relevant change. since this package lists tanstack query as peer dependency only, and exports both esm and cjs, I am afraid that it is very likely that the issue is related to your project setup. Could you provide a minimal reproduction?

I will setup a react-query example, and try to reproduce this there.

fixed in the latest release!

Awesome thank you