Skip to content

PLATFORM: Infinite LocalStorage Calls Causing Crash After New User Redirect #1190

@Allan2000-Git

Description

@Allan2000-Git

Describe the bug
When a new user is created and redirected to the dashboard, the app continuously calls localStorage in an infinite loop. This leads to repeated JSON parse errors and eventually crashes the page.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new user account.
  2. Log in and wait for automatic redirect to /dashboard (post OTP verification).
  3. Observe console errors and page freezing.

Expected behavior
The app should gracefully handle the absence or invalid value of selectedWorkspace in localStorage. If the value is not set or invalid, it should default to null or prompt the user to select a workspace.

Screenshots
Image

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version 140.0.7339.214 (Latest)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions