You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement set serialization, and have checkout out yours, though did not understand it.
How does it work ?
My aim is to have one of my reducers populate and read stateful Map in Redux Store, how would I do that ?
const reducer = (state = {
statefulMap: new Map()
}, action) => {
switch
case: {
let newMap = new Map(state.statefulMap)
action.newObjects.forEach(newMap.set(`${p.id},${p.search_keyword}`,
return Object.
return {
statefulMap: newMap
}
}
Thanks for any thoughts.
The text was updated successfully, but these errors were encountered:
I am trying to implement set serialization, and have checkout out yours, though did not understand it.
How does it work ?
My aim is to have one of my reducers populate and read stateful Map in Redux Store, how would I do that ?
Thanks for any thoughts.
The text was updated successfully, but these errors were encountered: