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

use PouchDB changes feed for events again #123

Merged
merged 3 commits into from
Feb 26, 2017
Merged

use PouchDB changes feed for events again #123

merged 3 commits into from
Feb 26, 2017

Conversation

gr2m
Copy link
Member

@gr2m gr2m commented Feb 21, 2017

THIS IS WORK IN PROGRESS

This is already working, but needs some coordinated updates to pouchdb-hoodie-sync and @hoodie/store-client. We currently emit change events based on pouchdb-hoodie-sync in @hoodie/store-client/lib/subscribe-to-sync-events.js, but with this PR we would trigger two changes. If we implement hoodiehq/discussion#105 (comment), we can probably get rid of pouchdb-hoodie-sync altogether, as it will be reduced to only a few simple methods.

closes #93, closes hoodiehq/camp#13

BREAKING CHANGE:

Before, change events (incl. add, update, remove) have only been triggered when using the custom APIs like `.add()` or `.update()`. Now they get always triggered, including for changes replicated into the database.
@gr2m gr2m changed the base branch from master to next February 26, 2017 02:53
@gr2m
Copy link
Member Author

gr2m commented Feb 26, 2017

I’m merging this into the next branch so we can wait with merging it in actual master as we have some more breaking changes coming up

@gr2m gr2m merged commit 6a5c0ea into next Feb 26, 2017
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.

None yet

1 participant