Box crashes when trying to hide preview while file is loading
Closed this issue · 0 comments
xrocketmanx commented
Environment:
- Preview version: 2.9.0
Desktop:
- OS: Windows 10
- Browser: Chrome
- Version: 74.0.3729.157
Steps to reproduce the problem:
- Open this codepen (everything is set up to reproduce)
- Observer console (possibly need to rerun/refresh page few times cause issue is sporadic)
This codepen is emulating behaviour when the user is trying to close preview immediately after he opened it. Reproducible when annotations are configured through viewers prop.
What is the expected behavior? (Screenshots can be helpful here)
Preview hides successfully without errors
What went wrong? (Screenshots can be helpful here)
Errors appear. Box preview crashes (continue trying to load). Some time later another error appears:
Preview state:
Link to application or sample code:
codepen