Skip to content

Commit 9304c71

Browse files
olzzonjstarpl
authored andcommitted
fix: re-implement setReady to false in useSubscriptionIfEnabled()
1 parent 2256777 commit 9304c71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

meteor/client/lib/ReactMeteorData/ReactMeteorData.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ export function useSubscriptionIfEnabled<K extends keyof AllPubSubTypes>(
419419

420420
useEffect(() => {
421421
if (!enable) {
422+
setReady(false)
422423
return
423424
}
424425

0 commit comments

Comments
 (0)