Skip to content

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

Merged
rwjblue merged 3 commits intoember-cli:masterfrom
buschtoens:patch-1
Mar 17, 2021
Merged

Add import { cached } from '@glimmer/tracking'#322
rwjblue merged 3 commits intoember-cli:masterfrom
buschtoens:patch-1

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
@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