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

Add import { cached } from '@glimmer/tracking' #322

Merged
merged 3 commits into from
Mar 17, 2021

Conversation

buschtoens
Copy link
Contributor

This adds a mapping from { memo } from '@glimmer/tracking' to Ember._memo.

This enables the ember-memo-decorator-polyfill for RFC 566 "@memo decorator" to work without any patch-package hackery.

If you don't want to accept this PR yet, because the RFC isn't even in FCP yet, we need to instruct users of the polyfill to either accept the patch-package hack, or we need to come up with an alternative soltuion. Any help would be appreciated then! 💝

This adds a mapping from `{ memo } from '@glimmer/tracking'` to `Ember._memo`.

This enables the [`ember-memo-decorator-polyfill`][polyfill] for [RFC 566 "@memo decorator"][rfc-566] to work without any [`patch-package`][patch-package] hackery.

[polyfill]: https://github.com/ember-polyfills/ember-memo-decorator-polyfill
[rfc-566]: emberjs/rfcs#566
[patch-package]: https://github.com/ds300/patch-package/issues
mappings.json Outdated Show resolved Hide resolved
mappings.json Outdated Show resolved Hide resolved
@rwjblue rwjblue changed the title Add { memo } from '@glimmer/tracking' Add import { cached } from '@glimmer/tracking' Mar 17, 2021
@rwjblue rwjblue merged commit f84c191 into ember-cli:master Mar 17, 2021
@rwjblue
Copy link
Member

rwjblue commented Mar 17, 2021

🎉 WEEEEHEHHEEEEEEEEEE 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants