Create a configs plugin

This starts to migrate configs to state
This commit is contained in:
Josh Ponelat
2017-10-18 13:06:33 +02:00
parent c2bdb3af24
commit 50b318c5d9
6 changed files with 106 additions and 51 deletions

View File

@@ -0,0 +1,4 @@
// Just get the config value ( it can possibly be an immutable object)
export const get = (state, path) => {
return state.getIn(Array.isArray(path) ? path : [path])
}