deco-cx / apps

App definitions by deco.cx
Apache License 2.0
82 stars 83 forks source link

React Json Schema Form crashes #834

Open guitavano opened 1 month ago

guitavano commented 1 month ago

To replicate, paste this schema: https://gist.github.com/guitavano/13e1915976b7d746eeb64270db554aaa

On playground: https://rjsf-team.github.io/react-jsonschema-form/

guitavano commented 1 month ago

We did this PR and it worked.

But we should fix it on the root.

mcandeia commented 1 month ago

More info: We discovered that the root cause is related to the fact that some types (specially arrays) takes more time to render on RJSF, replacing T[] to T[] | null makes it faster somehow

igorbrasileiro commented 1 month ago

More info: We discovered that the root cause is related to the fact that some types (specially arrays) takes more time to render on RJSF, replacing T[] to T[] | null makes it faster somehow

What do you think about move this question to the rjsf-team? Maybe they can give us an explanation why this is slow and give us a better explanation about slow schemas