Open chase-moskal opened 2 years ago
Steps to reproduce bug:
Ways to fix it: When wipe database is clicekd we should decide if we want to just wipe comments or if we also want to logout the user
@zenkyuv
hmm, we'll need to wipe the whole app state whenever wipe database
is pressed
wipe database
to wipe everything
localStorage.clear()
snap
is passed to prepareComponents
https://github.com/haumea-group/namaka/blob/master/s/frontend/components/prepare-components.ts#L26snap.state = freshAppState()
freshAppState
to generate a new empty app statefreshAppState
, we should also use it to generate the starting state here in makeAppSnap: https://github.com/haumea-group/namaka/blob/master/s/frontend/models/app-snap.ts#L23-L30
sometimes, when we load up or refresh the app demo, the page is broken, and there's a javascript console error, something like "user id 'abc123...' is not found", or something like that
we've been unable to reproduce the bug...