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

fix(all): do not destroy Feature App when it is rendered multiple times #512

Merged
merged 4 commits into from
Jun 14, 2019

Conversation

unstubbable
Copy link
Member

fixes #505

BREAKING CHANGE: FeatureAppManager#getFeatureAppScope has been replaced by FeatureAppManager#createFeatureAppScope, since now a new FeatureAppScope is created for every call. When a Feature App is unmounted, the release method (previously called destroy) must be called. Only when all scopes for a Feature App ID have been released, the Feature App instance is destroyed.

@unstubbable unstubbable requested a review from clebert June 14, 2019 12:37
fixes #505

BREAKING CHANGE: `FeatureAppManager#getFeatureAppScope` has been
replaced by `FeatureAppManager#createFeatureAppScope`, since now a new
`FeatureAppScope` is created for every call. When a Feature App is
unmounted, the `release` method (previously called `destroy`) must be
called. Only when all scopes for a Feature App ID have been released,
the Feature App instance is destroyed.
@unstubbable unstubbable force-pushed the feature-app-scope-destroy-bug branch from 4fd80da to a51cfdd Compare June 14, 2019 12:42
clebert
clebert previously approved these changes Jun 14, 2019
@unstubbable unstubbable merged commit bf8a8ad into master Jun 14, 2019
@unstubbable unstubbable deleted the feature-app-scope-destroy-bug branch June 14, 2019 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature App scope is destroyed too early for Feature App instances that are rendered more than once
2 participants