Skip to content

Commit

Permalink
fix(updatefile): update all clients (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz authored May 2, 2022
1 parent 6130ef7 commit fc2e13c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandpack-react/src/contexts/sandpackContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class SandpackProvider extends React.PureComponent<
files = { ...files, ...convertedFilesToBundlerFiles(pathOrFiles) };
}

this.setState({ files });
this.setState({ files }, this.updateClients);
};

/**
Expand Down

0 comments on commit fc2e13c

Please sign in to comment.