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

Remove cached data after use #79

Open
ericclemmons opened this issue Sep 7, 2015 · 1 comment
Open

Remove cached data after use #79

ericclemmons opened this issue Sep 7, 2015 · 1 comment
Labels
Milestone

Comments

@ericclemmons
Copy link
Owner

This probably needs a test case to confirm, but the thinking is that cached data will be re-used for the same object repeatedly:

cached(resolver = this) {
const id = resolver[ID];
if (this.props.data.hasOwnProperty(id)) {
return { ...this.props.data[id] };
} else if (this.context.resolver) {
return this.context.resolver.cached(resolver);
}
}

@ericclemmons ericclemmons added this to the v2 milestone Sep 7, 2015
@ericclemmons
Copy link
Owner Author

This could negate the need for #73 since data isn't stored after resolution.

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

No branches or pull requests

1 participant