earthstar-project / react-earthstar

A UI toolkit for making collaborative, offline-first applets for small groups.
GNU Affero General Public License v3.0
60 stars 5 forks source link

Current workspace is only remembered if you're logged in as a user #48

Closed cinnamon-bun closed 3 years ago

cinnamon-bun commented 3 years ago

To reproduce:

  1. Clear localStorage
  2. Add a workspace using an invitation
  3. Choose that workspace as the current workspace. Note that localstorage does actually update the value of earthstar-peer-status-current-workspace
  4. Reload the page. It will not remember which workspace you were viewing, it will instead say "Add workspace" in the dropdown even though localStorage knows which one you should be viewing.
  5. Sign in as a user, and now it will remember the current workspace when you reload.