caf_react/proxy_react

Proxy to manage from handler code react.js caching policies.

Source:

Extends

Methods

coin()

Source:

Gives another time extension to continue rendering.

Similar to a coin operated game machine, it stops rendering after a while, and it is waken up by a new coin...

render(f, args)

Source:

Renders and caches the application.

Parameters:
Name Type Description
f function

A pure function that renders the application into an string, which can later on be inserted in a (html) template.

args Array.<any>

An array with arguments for f.

setCacheKey(key)

Source:

Sets the key for caching a rendered application. null disables background rendering.

Parameters:
Name Type Description
key string | null

A key to cache a rendered application.