Created
February 16, 2018 08:26
-
-
Save alexesDev/31086e30a0f37b2db228e330aa4d0bcb to your computer and use it in GitHub Desktop.
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
| var { createStructuredSelector } = require("reselect") | |
| const ide = { | |
| tabs: [], | |
| activeTab: null, | |
| sidebarInitialSize: 100, | |
| sidebarTab: 'schema', | |
| contents: {}, | |
| }; | |
| const selector = createStructuredSelector({ | |
| tabs: state => state.tabs, | |
| activeTab: state => state.activeTab, | |
| sidebarInitialSize: state => state.sidebarInitialSize, | |
| sidebarTab: state => state.sidebarTab, | |
| }); | |
| console.log(selector(ide) === selector({ ...ide, contents: { test: 1 } })); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment