From fc2e13c00e2339c1ef18d18f4cb895248787b0d5 Mon Sep 17 00:00:00 2001 From: Danilo Woznica <danilowoz@gmail.com> Date: Mon, 2 May 2022 10:10:27 +0100 Subject: [PATCH] fix(updatefile): update all clients (#455) --- .../{sandpackContenxt.test.tsx => sandpackContext.test.tsx} | 0 sandpack-react/src/contexts/sandpackContext.tsx | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename sandpack-react/src/contexts/{sandpackContenxt.test.tsx => sandpackContext.test.tsx} (100%) diff --git a/sandpack-react/src/contexts/sandpackContenxt.test.tsx b/sandpack-react/src/contexts/sandpackContext.test.tsx similarity index 100% rename from sandpack-react/src/contexts/sandpackContenxt.test.tsx rename to sandpack-react/src/contexts/sandpackContext.test.tsx diff --git a/sandpack-react/src/contexts/sandpackContext.tsx b/sandpack-react/src/contexts/sandpackContext.tsx index 42401c153..60522efd2 100644 --- a/sandpack-react/src/contexts/sandpackContext.tsx +++ b/sandpack-react/src/contexts/sandpackContext.tsx @@ -223,7 +223,7 @@ class SandpackProvider extends React.PureComponent< files = { ...files, ...convertedFilesToBundlerFiles(pathOrFiles) }; } - this.setState({ files }); + this.setState({ files }, this.updateClients); }; /**