Bug report
Packages affected
Description of the problem
Hey, I've got a better repro this time! The preview doesn't always display the correct files after the SandpackProvider files prop has been updated.
What were you doing when the problem occurred?
Updating the files prop dynamically.
What steps can we take to reproduce the problem?
Watch my short Loom video and then open the Sandbox.
TLDW: I'm editing the files prop, when the preview updates, it shows an unstyled version of the previous set of files, instead of the current files. The internal sandpack.files state is correct.
Link to sandbox: link (optional)
Your Environment
| Software |
Name/Version |
| Sandpack-client version |
|
| Sandpack-react version |
2.6.4 |
| Browser |
Chrome |
| Operating System |
Windows 10 |
Bug report
Packages affected
Description of the problem
Hey, I've got a better repro this time! The preview doesn't always display the correct files after the
SandpackProviderfilesprop has been updated.What were you doing when the problem occurred?
Updating the
filesprop dynamically.What steps can we take to reproduce the problem?
Watch my short Loom video and then open the Sandbox.
TLDW: I'm editing the
filesprop, when the preview updates, it shows an unstyled version of the previous set of files, instead of the current files. The internalsandpack.filesstate is correct.Link to sandbox: link (optional)
Your Environment