Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated react dockview-demo CodeSandbox to reset relevant state on su…
…bsequent onReady calls Strict Mode causes the Dockview component to render twice, causing onReady to be called twice, which puts two copies of DefaultLayout in state without resetting between calls. A most-ideal solution would probably be to expose an onUnload hook or something like that, to be called after one onReady but before the next. Then, the state resets could be called in that hook. but this fix will at least ensure the Dockview-Demo codesandbox behaves nicely for the time being.
- Loading branch information