Skip to content

Commit

Permalink
Update useClient.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz committed Mar 13, 2023
1 parent 44f3bc9 commit e9ce7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandpack-react/src/contexts/utils/useClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export const useClient: UseClient = ({ options, customSetup }, filesState) => {
}

const unsubscribeQueuedClients = Object.values(
unsubscribeClientListeners.current[clientId]
unsubscribeClientListeners.current[clientId] ?? {}
);

// Unsubscribing all listener registered
Expand Down

0 comments on commit e9ce7bc

Please sign in to comment.