Skip to content

Commit 04d35ce

Browse files
update comment and changeset
1 parent e7810a6 commit 04d35ce

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.changeset/beige-jars-whisper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@powersync/react': patch
33
---
44

5-
Fixed regression in useSuspendingQuery where `releaseHold is not a function` could be thrown during hot reload or if the WatchedQuery `loading` state resolved before the first re-render.
5+
Fixed regression in useSuspendingQuery where `releaseHold is not a function` could be thrown during rendering.

packages/react/src/hooks/suspense/suspense-utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import React from 'react';
99
* Creates a subscription for state change which creates a temporary hold on the query
1010
*/
1111
export const useTemporaryHold = (watchedQuery?: WatchedQuery<unknown>) => {
12-
// Defaults to a no-op. If the provided WatchedQuery is not loading, we don't need a
13-
// temporary hold.
1412
const releaseTemporaryHold = React.useRef<() => void | undefined>(undefined);
1513
const addedHoldTo = React.useRef<WatchedQuery<unknown> | undefined>(undefined);
1614

0 commit comments

Comments
 (0)