i seem to be having problems using store
i have exported my store
const store = createStore(reducer);
export default store;
and gave it this initial state(reducer has "state = initialState")
const initialState = Immutable.fromJS({
user: 'me',
});
now in my component in function stateFromStore i seem to be getting an uninitialized store
with user = undefined
not sure why.
i seem to be having problems using store
i have exported my store
const store = createStore(reducer);
export default store;
and gave it this initial state(reducer has "state = initialState")
const initialState = Immutable.fromJS({
user: 'me',
});
now in my component in function stateFromStore i seem to be getting an uninitialized store
with user = undefined
not sure why.