@luxfi/ui 7.4.4 → 7.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/provider.tsx +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxfi/ui",
3
- "version": "7.4.4",
3
+ "version": "7.4.6",
4
4
  "description": "Cross-platform DeFi UI components built on @hanzo/gui (Tamagui). Native mobile + web.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -313,7 +313,6 @@
313
313
  "@radix-ui/react-slider": "^1.3.6",
314
314
  "@radix-ui/react-switch": "^1.2.6",
315
315
  "@radix-ui/react-tabs": "^1.1.13",
316
- "@tanstack/react-query": "^5.76.0",
317
316
  "@uidotdev/usehooks": "^2.4.1",
318
317
  "clsx": "^2.1.1",
319
318
  "es-toolkit": "^1.31.0",
@@ -322,6 +321,7 @@
322
321
  "tailwind-merge": "^3.0.0"
323
322
  },
324
323
  "peerDependencies": {
324
+ "@tanstack/react-query": "^5.76.0",
325
325
  "@hanzo/gui": "^7.3.0",
326
326
  "@hanzogui/colors": "^7.3.0",
327
327
  "@hanzogui/config": "^7.3.0",
package/src/provider.tsx CHANGED
@@ -88,6 +88,13 @@ interface AppProviderProps {
88
88
 
89
89
  // AppProvider wraps GuiProvider (the @hanzogui engine, fed the Lux config) +
90
90
  // tanstack QueryClientProvider. One provider for every Lux surface.
91
+ //
92
+ // @tanstack/react-query is a PEER, not a dependency: it hands out a React
93
+ // context, and a second physical copy is a second context. When this package
94
+ // carried its own, a surface that also used wagmi got two — AppProvider
95
+ // published a client into one context and `useAccount` read the other, and the
96
+ // page died with "No QueryClient set" under a provider that was plainly there.
97
+ // A context library belongs to the app, once.
91
98
  export const AppProvider = ({
92
99
  children,
93
100
  queryClient,