bunsenbrowser / bunsen

🔥 Bunsen Browser provides easy to use offline P2P application and file distribution that is verifiable on Android devices. https://bunsenbrowser.github.io/
117 stars 7 forks source link

DatArchive.watch may not be ready by the time you DatArchive.write #77

Open rjcorwin opened 5 years ago

rjcorwin commented 5 years ago

This is because it takes time for the web sockets connection to initialize. This is causing issues in redux-dat where the store is created (thus dat archives are watch'ed) and your app might immediately dispatch an action to kick things off. The UI will not reflect this kickoff action because the watch was not initialized so the subscriptions to the stores never hear about it.