hoodiehq / hoodie-client

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

on signin, reset hoodie.store before calling `store.connect()` #45

Closed gr2m closed 8 years ago

gr2m commented 8 years ago

When signing in, the hoodie.account.id changes so the local store needs to be reset (and existing data needs to be cleared). For that we can use the new store.reset({name: hoodie.account.id}) method


If you have any questions, ping us at http://hood.ie/chat/ or https://twitter.com/hoodiehq