Best way to handle monorepo imports?
Let's say I have 3 packages
A (app)
B (lib)
C (ui)
Package A imports B and C
Package B imports react-query to export and useGraphQL hook (that uses useQuery)
Package C imports react-query to export all App.tsx providers so it uses QueryClient, QueryClientProvider
I'm having trouble getting Error: No QueryClient set, use QueryClientProvider to set one and I'm guessing this is because of this setup, so I need to change how the packeages are imported (peerDep, devDep ...) But I'm having trouble figuring out how.
Anyone with experience on this could point me to the right direction?
A (app)
B (lib)
C (ui)
Package A imports B and C
Package B imports react-query to export and useGraphQL hook (that uses useQuery)
Package C imports react-query to export all App.tsx providers so it uses QueryClient, QueryClientProvider
I'm having trouble getting Error: No QueryClient set, use QueryClientProvider to set one and I'm guessing this is because of this setup, so I need to change how the packeages are imported (peerDep, devDep ...) But I'm having trouble figuring out how.
Anyone with experience on this could point me to the right direction?