In `@logux/client@0.21.1` localStorage may be clogged with old client identities. <details> <summary> view of dev tools with localStorage </summary>  </details> Is there a way to clean up this?
Activity
ai commentedon Oct 6, 2024
Seems like a bug. Can you post the full name of the key, what browser and how exactly do you use Logux (what log storage, how create Logux client).
BerkliumBirb commentedon Oct 6, 2024
FF 130.
localStorage keys
ai commentedon Oct 6, 2024
Got it. The problem is because you create unique user ID every time.
In this case you need to call
client.destroy()to clean all data.We can't add built-in feature because most of the users need opposite, the persistence local-first data with real user ID from database.
BerkliumBirb commentedon Oct 7, 2024
I tried to use "stable"
userId(saving it into localStorage), but it doesn't seem to solve the problem. Will report when have more info about it.