--

Sorry for replying late here. You can choose when you want to do that. By default, it doesn’t persist across refreshes, but you can make it persist by dumping it to sessionStorage or localStorage before you close your tab (there are browser hooks for that).

To share it between tabs you need to:

  1. Write it to localStorage every time its modified
  2. Add an event to “refresh the state” by pulling it from the localstorage every time a tab gets focused

Those 2 things guarantee cross-tab syncing, which (I believe) is not offered out of the box

--

--

Responses (1)