Comments (6)
Any ideas on this? I'm blocked from using this awesome library because of it
from react-jsonschema-form.
The widget has access to the formData
at its current level (in your example the widget will get the value for name
) via the value
prop. Is there a reason why you need access to all of the formData
within a single widget?
from react-jsonschema-form.
from react-jsonschema-form.
@zzph I'm wondering if the "freezing" of the form you are seeing is a situation where your the state change causes a rerender infinite loop. Theoretically, you should be able to put anything into the formContext
. Have you debugged why you things are freezing?
from react-jsonschema-form.
Yes I've debugged, and it does seem like you're saying- it re-renders the entire component everytime 'formContext' changes. So this is an issue.
Can you suggest a work around?
from react-jsonschema-form.
Maybe you can process the formData on change in a way that you transform what you put into the formContext is only what you need to provide the auto-suggest
? Meaning if your component looks at the value of age
to auto-suggest the value of name
(from your example), perhaps precompute the suggestion OUTSIDE of the component and pass in the suggestion rather than the formData in the formContext?
from react-jsonschema-form.
Related Issues (20)
- Array Length dependant on FormContext Value HOT 1
- Add support for tremor UI library HOT 2
- Issue with data of files array when we have validation required and minItems HOT 1
- Issue with omit extra data and live omit not working onSubmit HOT 2
- use allOf schemas with additionalProperties, when change allof ,I don't want the data value of the previous anyof HOT 1
- Using SchemaField when upgrading from v4 to v5 HOT 3
- Form Layout HOT 1
- Empty item in selectbox for enum is not visible HOT 2
- Custom Error Message for FormData required Fields HOT 3
- anyOf/oneOf option switches when entering value HOT 1
- Issue when resetting certain numbers with a default value
- Performance issues with large schema dependencies and oneOf conditions. HOT 3
- File Upload "No file chosen" issue
- validator and customValidate both are validating fields
- Is there any way in RJSF 5 to externally validate the form without triggering form validation? HOT 2
- oneOf not selecting correct default value for complex objects with the same property keys
- field ui:readonly and ui:disabled cant cover ui:globalOptions property
- Integration of shadcn HOT 1
- Description Property Not Shown in OneOf Dropdown Menu 🐛
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-jsonschema-form.