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

[FEATURE] Adds Cache API #18984

Merged
merged 1 commit into from
May 21, 2020
Merged

[FEATURE] Adds Cache API #18984

merged 1 commit into from
May 21, 2020

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented May 19, 2020

Adds the cache API specified in RFC 615. Since this API is essentially
just exposing the API that was implemented in Glimmer VM, and tested there,
I don't think tests are necessary to add in Ember itself.

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add @category with the feature flag name to the JSDocs (so the pending features get stripped).

@public
*/
export function createCache<T>(fn: () => T) {
return glimmerCreateCache(fn);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remind me why we can just export this directly? I know we talked about it, but I can’t recall if we had resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, I remember we discussed this actually and it would be fine, any additional arguments are not document so it's fine, I'll update

Adds the cache API specified in RFC 615. Since this API is essentially
just exposing the API that was implemented in Glimmer VM, and tested there,
I don't think tests are necessary to add in Ember itself.
@rwjblue rwjblue merged commit 9ff83d9 into master May 21, 2020
@rwjblue rwjblue deleted the add-cache-api branch May 21, 2020 01:30
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.

2 participants