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

refactor(test-helpers): [BREAKING] remove link cache #658

Merged
merged 1 commit into from
Nov 18, 2021

Conversation

Turbo87
Copy link
Collaborator

@Turbo87 Turbo87 commented Nov 18, 2021

The link cache was intended to ensure that calling createUILink() with the same parameters would return the exact same instance as for earlier calls. The advantages from doing this are very small though and were causing us to need the ember-auto-import dependency (for fast-json-stable-stringify), which in turn causes us to not be compatible with Ember.js 4 at the moment. Additionally, #573 made the cache more complicated or not work at all, because passed-in functions/actions can't be serialized to JSON as a cache key.

This PR removes the link cache to resolve all of the above issues. As some apps or test suites might be relying on the current behavior, this PR is flagged as "breaking", although it should most likely not break anything for the majority of apps.

@Turbo87 Turbo87 force-pushed the remove-cache branch 2 times, most recently from 0a56c6a to c43d23d Compare November 18, 2021 10:42
@Turbo87 Turbo87 marked this pull request as ready for review November 18, 2021 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant