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

feat(Form): Clean current schema after switching to another schema #1952

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Jan 27, 2025

Context

This PR adds an useState in the KaotoForm component so it can be rerendered when a property changes, this refreshes the values of every field, allowing the OneOf field to always have up-to-date data.

In addition to that, the OneOf component introduces a onSchemaChange callback that remove the properties from the selected schema before switching to a new one.

Notes

part of #1939

@lordrip lordrip merged commit b0aa319 into KaotoIO:feat/form-with-anyof-support Jan 27, 2025
4 of 8 checks passed
@lordrip lordrip deleted the feat/form-v2 branch January 27, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant