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

Make subs only remove self from subscription cache when disposing #428

Merged
merged 5 commits into from
Nov 24, 2017

Conversation

danielcompton
Copy link
Contributor

@danielcompton danielcompton commented Nov 20, 2017

Adds a check for subscriptions to make sure that when they are dissocing their cache key from the query cache that they are only removing themselves. In certain cases when reloading/re-rendering the app, subscriptions would be created and destroyed several times because each version of subscription destroyed the following one.

I still need to review this more before merging.

Adds a check for subscriptions to make sure that when they are dissocing
their cache key from the query cache that they are only removing
themselves. In certain cases when reloading/re-rendering the app,
subscriptions would be created and destroyed several times because each
version of subscription destroyed the following one.
re-frame should always be using queries from the cache if they exist.
This is a belt and suspenders check to make sure that always holds.
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.

1 participant