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

Don't create subscriptions in reg-sub #259

Merged
merged 1 commit into from
Oct 25, 2016
Merged

Don't create subscriptions in reg-sub #259

merged 1 commit into from
Oct 25, 2016

Conversation

danielcompton
Copy link
Contributor

This commit fixes a bug where reg-sub created subscriptions and closed over them when using the :<- [:sub] sugar. Now dependent subscriptions aren't created until they are needed, and they will be cleaned up correctly.

I'm not 100% sold on my tests for this behaviour, but I'm not sure how/if I want to hook into the Reagent guts to check this further.

This commit fixes a bug where reg-sub created subscriptions and closed
over them when using the `:<- [:sub]` sugar. Now dependent subscriptions
aren't created until they are needed, and they will be cleaned up
correctly.
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