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 run on-changes if db is not in effects #341

Merged
merged 4 commits into from
Jul 16, 2017

Conversation

bradleesand
Copy link
Contributor

Currently, if there the effect handler does not set :db, then on-changes will end up treating new-db as nil and probably end up wiping the db. This causes the on-changes interceptor not to run if the :db is not set in the effect.

@bradleesand bradleesand changed the base branch from master to develop May 18, 2017 20:21
Currently, if there the effect handler does not set `:db`, then `on-changes` will end up treating `new-db` as `nil` and probably end up wiping the `db`. This causes the `on-changes` interceptor not to run if the `:db` is not set in the effect.
@mike-thompson-day8 mike-thompson-day8 merged commit 4f964b7 into day8:develop Jul 16, 2017
@mike-thompson-day8
Copy link
Contributor

Many Thanks, good fix.

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