This repository was archived by the owner on Mar 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' svelte-query-pocketbase ' : patch
3+ ---
4+
5+ fix: correct argument for hasSubscriptionListeners in all collection queries
Original file line number Diff line number Diff line change @@ -179,9 +179,7 @@ export const createCollectionQuery = <
179179 await unsubscribePromise
180180 ) ( ) ;
181181 if (
182- ! collection . client . realtime [ 'hasSubscriptionListeners' ] (
183- `${ collection . collectionIdOrName } /*`
184- )
182+ ! collection . client . realtime [ 'hasSubscriptionListeners' ] ( collection . collectionIdOrName )
185183 ) {
186184 console . log (
187185 `(C) ${ JSON . stringify ( queryKey ) } : no realtime listeners, marking query as stale.`
Original file line number Diff line number Diff line change @@ -304,9 +304,7 @@ export const createInfiniteCollectionQuery = <
304304 await unsubscribePromise
305305 ) ( ) ;
306306 if (
307- ! collection . client . realtime [ 'hasSubscriptionListeners' ] (
308- `${ collection . collectionIdOrName } /*`
309- )
307+ ! collection . client . realtime [ 'hasSubscriptionListeners' ] ( collection . collectionIdOrName )
310308 ) {
311309 console . log (
312310 `(IC) ${ JSON . stringify ( queryKey ) } : no realtime listeners, marking query as stale.`
You can’t perform that action at this time.
0 commit comments