Closed joseika closed 2 years ago
Whoops, the export is missing. You can also do React.useContext(MuiComponentContext)
as a work around
Fixed in v5 beta by removing the whole hooks implementation: https://react-jsonschema-form.readthedocs.io/en/latest/5.x%20upgrade%20guide/
Prerequisites
What theme are you using?
material-ui
Version
4.2.0
Current Behavior
I implemented a custom field based on the documentation example: https://react-jsonschema-form.readthedocs.io/en/latest/advanced-customization/material-ui/customizing-material-ui/#example-of-a-custom-field-for-rjsfmaterial-ui
Error: export 'useMuiComponent' (imported as 'useMuiComponent') was not found in '@rjsf/material-ui/v4' (possible exports: ArrayFieldTemplate, FieldTemplate, Fields, MuiComponentContext, MuiForm, ObjectFieldTemplate, Theme, Widgets, default)
Is the export missing, or is the documentation outdated?
Expected Behavior
Examples in documentation should work.
Steps To Reproduce
Environment
Anything else?
No response