Hello! We have an enum with 266 options.
WIth the upgrade to JSONForm 3 from 2.5, we’re seeing the following stack trace:
Uncaught InternalError: function nested too deeply
validate core.ts:55
coreReducer core.ts:167
<anonymous> JsonFormsContext.tsx:126
JsonFormsStateProvider JsonFormsContext.tsx:123
unstable_runWithPriority scheduler.development.js:468
I was able to reproduce in the material renderers example set with 300 options, using the following schemas (I removed the options for length!):
const schema = {
"properties": {
"too_many_options": {
"oneOf": [
{const: "test1", title: "test1"},
{const: "test2", title: "test2"},
...
{const: "test296", title: "test296"},
{const: "test297", title: "test297"},
{const: "test298", title: "test298"},
{const: "test299", title: "test299"},
{const: "test300", title: "test300"},
]
}
}
};
const uischema = {
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"label": "More options than any sane person could want",
"scope": "#/properties/too_many_options"
}
]
};
This is a pretty simple set of schemas but please let me know if there’s something I can change to make this work!