Skip to content

Monaco Editor is stuck in loading state after page refresh #3819

@OliwiaGowor

Description

@OliwiaGowor

Description
When the user refreshes a page with the Monaco Editor (e.g., Edit or Create form) open, the editor gets stuck in a loading state after the refresh.

Screen.Recording.2025-04-03.at.09.27.09.mov

Expected result
The Monaco editor should function correctly after a page refresh and not remain in a loading state.

Actual result
Monaco Editor is stuck in loading state after page refresh.

Steps to reproduce

  1. Open Monaco Editor (for example open Deployment Create form)
  2. Refresh the page with form opened

Troubleshooting
When refreshing there is a problem with possibly some race condition in the useGetSchema function. On refresh it is being called from two places (createRoutes and Monaco) at one with the same schemaId

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions