wix-incubator / autoviews

A library for building user interfaces with JSON schemas, react components and data
MIT License
12 stars 4 forks source link

Improve predicate docs #108

Closed tyv closed 2 years ago

tyv commented 2 years ago

Is there an existing issue for this?

The problem

Predicates are confusing. 
It seems like it should force AutoView to select that component no matter what, 
however, in fact it works like that:
The last component without predicate or the last one with predicate which returns true wins.

The idea is, when you add a component for the same type afterwards to give you option to narrow cases when it is used, so you can stay with general one by default.

Describe the solution you'd like

add relevant docs

Describe alternatives you've considered

No response

tyv commented 2 years ago

Also we should make sure that UISchema docs link presented