Persist preview mode state to session storage
Currently, the preview state resides in memory. The moment the user refreshes the page while previewing, they will be presented with a 401 page. The initial state should be derived from session storage.
Edited by Olivier Goulet