Last active
June 16, 2017 00:45
-
-
Save joeyfigaro/bc30c0905370a20cd9c38e2c0148693e to your computer and use it in GitHub Desktop.
Ramda & Redux (pick example)
This file contains hidden or 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
store.subscribe(() => { | |
const state = store.getState(); | |
storage.set('saved', pick(['lessons', 'auth', 'notifications'], state)); | |
}); | |
/* | |
{ | |
saved: { | |
lessons: {...}, | |
auth: {...}, | |
notifications: [...] | |
} | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment