@fitzzero/quickdraw-core 3.4.0 → 3.6.0

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.
@@ -80,6 +80,17 @@ interface UseSubscriptionOptions<TData> {
80
80
  * Stale time for TanStack Query cache (default: Infinity for subscriptions)
81
81
  */
82
82
  staleTime?: number;
83
+ /**
84
+ * Re-fetch entity data through the batcher when the tab becomes visible,
85
+ * catching any updates that may have been missed while the tab was hidden.
86
+ *
87
+ * Only one visibility listener is created per unique subscription
88
+ * (deduplicated by the subscription registry), so multiple components
89
+ * subscribing to the same entity won't cause redundant fetches.
90
+ *
91
+ * @default false
92
+ */
93
+ refetchOnWindowFocus?: boolean;
83
94
  }
84
95
  /**
85
96
  * Return type for the useSubscription hook.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fitzzero/quickdraw-core",
3
- "version": "3.4.0",
3
+ "version": "3.6.0",
4
4
  "description": "Fast fullstack patterns for real-time applications with Socket.io and TanStack Query",
5
5
  "type": "module",
6
6
  "main": "./dist/shared/index.js",