score:1

Accepted answer

you must json.stringify your data while using sessionstorage.setitem and json.parse while reading it.

also, in your mapstatetoprops, you have this:

  return {
    token: state.auth.token
  };
};

but this is how your state looks like: state = { token: 'value' }

make sure you have the same structure.


Related Query

More Query from same tag