Closed ptbrowne closed 7 years ago
Build is failing but I've only touched the doc :/
For future improvements, do you thinks it is possible to pass PouchDB and pouchdbFind as initialisation parameters to CozyClient ?
I think it would be a good idea to do so 👍, it would be like a simple version of dependency injection. I think it would also be better from a testing point of view.
The production build of Bank was broken because of this.
In prod, since
cozy-client-js
is injected by the stack, it has not been processed bywepback
and theProvidePlugin
. Thus you need to bindPouchDB
towindow
.