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 = <
179
179
await unsubscribePromise
180
180
) ( ) ;
181
181
if (
182
- ! collection . client . realtime [ 'hasSubscriptionListeners' ] (
183
- `${ collection . collectionIdOrName } /*`
184
- )
182
+ ! collection . client . realtime [ 'hasSubscriptionListeners' ] ( collection . collectionIdOrName )
185
183
) {
186
184
console . log (
187
185
`(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 = <
304
304
await unsubscribePromise
305
305
) ( ) ;
306
306
if (
307
- ! collection . client . realtime [ 'hasSubscriptionListeners' ] (
308
- `${ collection . collectionIdOrName } /*`
309
- )
307
+ ! collection . client . realtime [ 'hasSubscriptionListeners' ] ( collection . collectionIdOrName )
310
308
) {
311
309
console . log (
312
310
`(IC) ${ JSON . stringify ( queryKey ) } : no realtime listeners, marking query as stale.`
You can’t perform that action at this time.
0 commit comments