rweng.store.pouchdb
v0.6.5
Published
Reactive PouchDB Store and Utils
Readme
#Install
npm install --save rweng.store.pouchdbQ&A
Why separate backends and not Pouchdb Adapters
- PouchDB API is Promise based, which means even
Promise.resolveis async in by default. - Prefered Observable API, cancelable & lazy
- easier in-memory and other implementations compared to PouchDB plugins
Why and When Promises vs Observables
- Promises for methods, since
- the method is an action to be taken and thus should be hot replay, which Promises are by default.
Otherwise the method name had to be
createPut$() - Better TS support through
async/await
- the method is an action to be taken and thus should be hot replay, which Promises are by default.
Otherwise the method name had to be
- Observables for properties like
changes$,state$, ...
