Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] stores: add resetStores method #3863

Closed
wants to merge 1 commit into from

Commits on Mar 20, 2024

  1. [IMP] stores: add resetStores method

    Once the `DependencyContainer` was created and stores were injected,
    there was no way to remove them. It was a problem for the import of
    xlsx in Demo, because we created a new model and we'd want to
    inject a new ModelStore and re-create all the stores that had a
    reference to the old model.
    
    This commit creates a `resetStores` method in the `DependencyContainer`
    that removes all the stores. Note that references to the old stores
    are not removed, so we need to destroy all the components that may
    use store to not end up in an incorrect state.
    hokolomopo committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    497218d View commit details
    Browse the repository at this point in the history