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

fix: Prevent the Playground from crashing on a form error. #3164

Merged
merged 4 commits into from
Oct 3, 2022

Conversation

nickgros
Copy link
Contributor

@nickgros nickgros commented Sep 30, 2022

Fixes #3132, #3095, #2787, #2277, #2179, #2170, #2163, #1762, and #1002;

Potentially fixes other issues that I couldn't find.

image

packages/playground/src/ErrorBoundary.jsx Outdated Show resolved Hide resolved
packages/playground/src/app.jsx Outdated Show resolved Hide resolved
@heath-freenome heath-freenome changed the title Prevent the Playground from crashing on a form error. fix: Prevent the Playground from crashing on a form error. Sep 30, 2022
@heath-freenome
Copy link
Member

@nickgros Have you verified that this will handle all the uses cases you've indicated will be fixed?

Co-authored-by: Heath C <51679588+heath-freenome@users.noreply.github.com>
@nickgros
Copy link
Contributor Author

nickgros commented Oct 3, 2022

@nickgros Have you verified that this will handle all the uses cases you've indicated will be fixed?

Yep, and just added a few more.

The Form component is still going to throw an error in user code, but in those cases, users should use an error boundary themselves, or open a new issue/PR and clearly define what the behavior should be.

@nickgros nickgros merged commit 22772c7 into rjsf-team:main Oct 3, 2022
@nickgros nickgros linked an issue Oct 3, 2022 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants