You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the advanced way in which we use RJSF, we need to programmatically omit extra data. We have implemented our own step functionality on top of RJSF, and we need to filter out extra data without submitting the form when switching between steps, as liveOmit is hitting our performance requirements.
Temporarily, we have created a custom function that mimics the logic from here and here:
Using new Form in this manner is entirely possible, as neither getFieldNames nor getUsedFormData access this. However, it is clear that this is not the best long-term solution. The extraction could be beneficial for other users and would help to avoid duplicating the same logic if it were centralized. Would schemaUtils be an appropriate place for this? A similar function, getDefaultFormState, already exists there.
MarekBodingerBA
changed the title
Consider adding omit extra data functionality to schemaUtils
Consider moving omit extra data functionality to schemaUtils
Feb 5, 2024
Prerequisites
What theme are you using?
core
What is your question?
Hello,
Due to the advanced way in which we use RJSF, we need to programmatically omit extra data. We have implemented our own step functionality on top of RJSF, and we need to filter out extra data without submitting the form when switching between steps, as
liveOmit
is hitting our performance requirements.Temporarily, we have created a custom function that mimics the logic from here and here:
Using new Form in this manner is entirely possible, as neither
getFieldNames
norgetUsedFormData
accessthis
. However, it is clear that this is not the best long-term solution. The extraction could be beneficial for other users and would help to avoid duplicating the same logic if it were centralized. WouldschemaUtils
be an appropriate place for this? A similar function,getDefaultFormState
, already exists there.I propose the following:
schemaUtils.omitExtraData
and replace its usage in theForm
.I can work on this if you give me the green light to proceed.
Thanks!
The text was updated successfully, but these errors were encountered: