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
[x] claim this issue (comment below or assign yourself)
[x] update "hoodie-client-store" version in package.json to the latest (4.0.0 right now) and commit the change with chore(package): hoodie-client-store@^4.0.0 (or whatever is the current version) unless it’s already updated
[x] start a PR
[x] in the signin event handler in index.js, add store.reset(options).then(store.connect). That resets the store, and once finished, connects the new store to the new remote of the signed in user
[x] commit the change with fix: reset store on signin
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 newstore.reset({name: hoodie.account.id})
method"hoodie-client-store"
version in package.json to the latest (4.0.0
right now) and commit the change withchore(package): hoodie-client-store@^4.0.0
(or whatever is the current version) unless it’s already updatedsignin
event handler in index.js, addstore.reset(options).then(store.connect)
. That resets the store, and once finished, connects the new store to the new remote of the signed in userfix: reset store on signin
If you have any questions, ping us at http://hood.ie/chat/ or https://twitter.com/hoodiehq