Skip to content

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

Merged
jasonvarga merged 1 commit into
5.xfrom
addon-static-properties
Dec 18, 2024
Merged

jasonvarga merged 1 commit into
5.xfrom
addon-static-properties

Conversation

@jasonvarga

Copy link
Copy Markdown
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.

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