Skip to content

Commit a83ca67

Browse files
committed
fix: set to empty array on cleanup
1 parent 9ce9513 commit a83ca67

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/react-query-next-experimental/src/HydrationStreamProvider.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,7 @@ export function createHydrationStreamProvider<TShape>() {
165165

166166
return () => {
167167
// Cleanup after unmount
168-
win[id] = {
169-
push() {
170-
// no-op
171-
},
172-
}
168+
win[id] = []
173169
}
174170
}, [id, transformer])
175171
// </client stuff>

0 commit comments

Comments
 (0)