Skip to content

Commit

Permalink
refactor: removed pointless check
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Jun 18, 2023
1 parent fede312 commit 9ce9513
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ export function createHydrationStreamProvider<TShape>() {
// Register cache consumer
const winStream: Array<Serialized<TShape>> = win[id] ?? []

if (!Array.isArray(winStream)) {
throw new Error(`${id} seem to have been registered twice`)
}
onEntries(...winStream)

// Register our own consumer
Expand Down

0 comments on commit 9ce9513

Please sign in to comment.