re: A type-safe approach to Redux stores in TypeScript VIEW POST

VIEW FULL DISCUSSION
 

I'm wondering if there isn't any typo in reducers?

Shouldn't the following line return { ...state, connectedUsers: action.users };
be return { ...state, connectedUsers: action.payload.users };?

 

Yes, that should be correct, fixing that now. Thanks for noticing!

code of conduct - report abuse