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

[5.x] Fix static properties in addon providers #11283

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Conversation

jasonvarga
Copy link
Member

Some addon's tests started failing due to the static property usage introduced in #11128.

The shouldBootRootItems would return false when it checked if the addon was already booted on subsequent tests, since within a test suite static properties stick around.

Technically you'd see the same issue in the browser if you were using Octane. For regular browser usage, there was no issue.

This PR fixes it by using collections resolved out of the container. They get shared across addons, but only for that lifecycle.

@jasonvarga jasonvarga merged commit 3302a29 into 5.x Dec 18, 2024
20 checks passed
@jasonvarga jasonvarga deleted the addon-static-properties branch December 18, 2024 20:48
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.

1 participant