Open amallo opened 7 years ago
I’m sorry I didn’t get to it today. Long day was long ... I did not forget about it, I’ll try again tomorrow. Maybe someone else will be able to help out quicker
Of course no problem ! I hope you'll find something
Here is my Hoodie
initialisation
import Hoodie from '@hoodie/client'
import PouchDB from 'pouchdb-browser'
const hoodie = new Hoodie({
url: 'http://localhost:8080',
PouchDB
})
thanks a lot, I was able to reproduce the issue 👍 I’ll investigate. Would you be interested in contributing a fix? I’d help you out to find your way around and also help to figure out the bug and the fix, but always happy to onboard new contributors and empower folks to help themselves in future :)
Nice ! Sure I can try to help to contribute hope I will find my path :)
great :) I need to give this some thought first but I’ll get back to you next week.
To give you some background already: we have split up Hoodie into many smaller modules, mostly to force us to create self-contained modules with good APIs, documentation, tests but above all to make contribution easier. So now we have logic for hoodie.account
in this repository while we have logic for hoodie.store
in the hoodie-store-client
repository.
The challenge is now that hoodie.account.signOut()
should behave differently based on wether there are local changes in the store or not, so that check would need to go into the hoodie-client
repository which combines the two :D In order to make that work for hoodie-client
we need ways to "hook" into the signout process from outside the hoodie-account-client
, we already have that: https://github.com/hoodiehq/hoodie-account-client#hooks
So now we need to put it all together, I’ll figure this out and then walk you through it. Here is some more info on the overall Hoodie architecture if you are interested: http://docs.hood.ie/en/latest/about/architecture.html
I’m sorry I didn’t get back to you yet. I’m heads down with work and preparing http://offlinefirst.org/camp/, but I will get back to you after the event, I promise
I’m so sorry I didn’t get back to you as promised, things went rollercoster last year :( is this still relevant to you?
Hi,
First of all I don't know if considered as an issue, you should tell me.
I am working on an offline electron's app and
Hoodie
seems to be great for that butaccount.signOut
seems to be rejected with this error{"status":0,"name":"unknown","message":"getCheckpoint rejected with "}
while offline,that sounds wierd to have to be connected to sign out, I am missing something ?
account.signOut
works great when server is upHere is me logout method
ignoreLocalChanges
param changes nothingpackage.json