Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All schema data lost in case of error #2277

Closed
3 tasks done
genvarek opened this issue Mar 16, 2021 · 2 comments · Fixed by #3164
Closed
3 tasks done

All schema data lost in case of error #2277

genvarek opened this issue Mar 16, 2021 · 2 comments · Fixed by #3164

Comments

@genvarek
Copy link

Prerequisites

Description

In case of some errors the playground turns into a blank page. It looks like that:
Screenshot from 2021-03-16 19-21-34

If I click on "go back" in Chrome or reload the page, I return to the default example and my own json schema is lost.

Steps to Reproduce

  1. Go to the shared playground https://bit.ly/38Ns83L
  2. Try to type in the UI schema inside "case2" this: "ui:widget": "radio"
  3. The form is lost!

Expected behavior

Errors are underlined with red curved lines like typos. Or anything else, but I don't want my data to be erased!

Actual behavior

Data is lost.

Version

Current playground

@ngquoctrong
Copy link

I have the same issue here when users edit UI Schema, and they type word by word and issue happened

@nickgros
Copy link
Contributor

nickgros commented Oct 3, 2022

This will be fixed in the playground in #3164. To fix this in your own application, I recommend using an error boundary and/or not committing an invalid UI schema to the Form component.

@nickgros nickgros linked a pull request Oct 3, 2022 that will close this issue
@nickgros nickgros closed this as completed Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants