Created
March 23, 2017 08:54
-
-
Save aakashns/23f1efa8f70b6cd5f060532e337684c1 to your computer and use it in GitHub Desktop.
Simple version of linkStoreWithDb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const linkStoreWithDb = (fromDb, fromStore) => { | |
return (db, store) => { | |
fromDb(db, store.dispatch); | |
store.subscribe(() => fromStore(store.getState(), db) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment