hoodiehq / hoodie-client

:dog: Client API for the Hoodie server
Apache License 2.0
34 stars 25 forks source link

'change' event no longer triggered after sign in / sign out #146

Closed gr2m closed 7 years ago

gr2m commented 7 years ago

You can reproduce the problem on https://tracker.hood.ie/

Sign in to an account. Then on the terminal

hoodie.store.on('change', () => console.log('change'))

Now

hoodie.store.add({name: 'foo'})

You should see change logs.

Now if you sign out on the console

hoodie.account.signOut()

and now create another document

hoodie.store.add({name: 'foo'})

there is no change logged, but should be

gr2m commented 7 years ago

This is fixed now in latest hoodie