fix(getSandpackStateFromProps): get activeFile from files from props + template files #665
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
activeFile
used to look for the file path from an incomplete file tree (only files from props), when it should look for it from the files from props and the files introduced by the default template, which is the output ofcombineTemplateFilesToSetup
. Unfortunately, this was a mistake from the last breaking change, but easy to fix.Thanks @jerrywu001 for reporting it 🙌
Closes #664
Closes #663