mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-01 19:48:28 +01:00
10 lines
494 B
Markdown
10 lines
494 B
Markdown
# useNetworkAwareQueryClient Limitations
|
|
|
|
**Date**: 2026-01-10
|
|
**Category**: state-management
|
|
**Key files**: `hooks/useNetworkAwareQueryClient.ts`
|
|
|
|
## Detail
|
|
|
|
The `useNetworkAwareQueryClient` hook uses `Object.create(queryClient)` which breaks QueryClient methods that use JavaScript private fields (like `getQueriesData`, `setQueriesData`, `setQueryData`). Only use it when you ONLY need `invalidateQueries`. For cache manipulation, use standard `useQueryClient` from `@tanstack/react-query`.
|