Skip to content

Commit

Permalink
fix(client): make sure unsubscribeQueuedClients receives a valid obj (
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz authored Mar 13, 2023
1 parent 44f3bc9 commit 3d42177
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

1 comment on commit 3d42177

@vercel
Copy link

@vercel vercel bot commented on 3d42177 Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sandpack-docs – ./website/docs

sandpack-docs-codesandbox1.vercel.app
sandpack.vercel.app
sandpack-docs-git-main-codesandbox1.vercel.app

Please sign in to comment.