initialState
function. Reducer.initialState
will take the custom state and return a new reducer function. initialState
is only meant to be called where the store is initialized. The custom state passed in will be shallow merged with the default initialState
.uiState
initialState
to hide side panel, and selectively display map control button.