I know you can use $store.map to select part of a store but what if I need to select a part of a store using a parameter. Example:
const $data = createStore({"alex": {age: 20, name: "Alex}, "john": {age: 30, name: "John"}})
if I have and cont id = "alex" in a component somewhere is there a use to select only alex data and get the update if that is changing ?
Using reselect I could do something like:
const getVisibilityFilter = (state, props) => state.todoLists[props.listId].visibilityFilter
I know you can use $store.map to select part of a store but what if I need to select a part of a store using a parameter. Example:
if I have and
cont id = "alex"in a component somewhere is there a use to select only alex data and get the update if that is changing ?Using reselect I could do something like: