when i refresh, react app loses state code example
Example: how to cause a whole page reload react redux
window.location.reload();
//default = false
window.location.reload(false);
//soft refresh
window.location.reload(true);
//hard refresh
window.location.reload();
//default = false
window.location.reload(false);
//soft refresh
window.location.reload(true);
//hard refresh