Skip to content

Editor content resets on page refresh as it does not use localStorage #34

@Siddhartha20242

Description

@Siddhartha20242

Hi, I am not sure if this is intentional but whenever I refresh the page, everything I typed in the schema and instance editors is gone. It always goes back to the default content.

What's a bit confusing is that the theme setting actually does persist after refresh, so it feels like the editor content should too.

One approach could be using localStorage as it has a 5MB default storage limit which should be more than enough for schema related work. That way the editor content could be saved the same way the theme already is, so when we come back or accidentally refresh, our work is still there.

Happy to submit a PR if this is something you'd want!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions