0👍
Changing
const state = {
authorization: SessionStorage.getItem('authorization') || null
};
to
const state = () => ({
authorization: SessionStorage.getItem('authorization') || null
});
fixed the problem.
Source:stackexchange.com
0👍
Changing
const state = {
authorization: SessionStorage.getItem('authorization') || null
};
to
const state = () => ({
authorization: SessionStorage.getItem('authorization') || null
});
fixed the problem.