Skip to content

Caching om.next ui props

Petter Eriksson edited this page Dec 6, 2017 · 4 revisions

In om.next it’s possible to overwrite the default ui->props function, which is the function that takes a component and returns its props. When this function has been run on the root component, the props for every ui component will have been computed.

Our implementation caches the props tree and finds a components props (if it has been computed) in the props tree with the ui path om.next provides.

See function: cached-ui->props-fn

This function sped up our UI significantly and allowed us to not care less about parser read performance.