-
Notifications
You must be signed in to change notification settings - Fork 59
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
Implement events #35
Comments
Can I get a little more description on what these desired "events" are? I've got the downtime to figure it out |
Hey @stevemasta34, these events are about the account JavaScript API that we use within the route handlers, but also expose at We can start with the So, what we’d want to do here is to use PouchDB’s changes feed to emit api.accounts.on('add', function(account) {})
api.accounts.on('update', function(account) {})
api.accounts.on('remove', function(account) {})
api.accounts.on('change', function(eventName, account) {}) Makes sense? |
Yes this make a lot of sense. I'll start a local branch, and if I get any headway (or stuck) I'll start the PR. |
Heya @stevemasta34: did you get anywhere with this? If wanna share some in-progess work, I‘d be happy to help :) |
Hey @janl my work life has kind of taken over my personal life, so my progress has been minimal; my free time disappeared. You're more than welcome to take the lead on this one, and I'll tag in this weekend. |
The text was updated successfully, but these errors were encountered: