Check if there's applicable renderer found

I have some legacy backbone app and I want to integrate jsonforms and react. For now I don’t have a schema available for all forms so I wan’t to fallback to JSON editor if there’s renderer error in jsonforms. Mostly it works great even without schema, but with some data (like {"entities":[],"relations":{}}) json forms shows no applicable renderer found error. Is there a way to know upfront (before rendering react component) that there will be some problem with renderer?

Hi @olhapi,

Renderers dispatch on the fly, so there is no way to generically check beforehand whether you will run into this case.

If you need to handle the case that no applicable renderer could be found for your schema you could register a custom renderer with a very low priority and then implement a fallback mechanism.

1 Like