Configuration - d4rky-pl/arboris GitHub Wiki
Arboris supports few configuration options:
renderLimit
(default is10
) - Defines how many times DOM tree could be re-rendered on server side before sending it to client. Reaching that limit could be caused by infinite rendering loop. Raising that limit may be necessary in larger, complicated applications.warnOnMaxLimit
(default istrue
) - Change it, to suppress warnings when you reach limit mentioned above.timeLimit
(default is25000
) - Time limit (in miliseconds) for server side rendering loop process.logger
(default isconsole
) - You could use your custom logger here.renderMethod
(default is(markup) => renderToString(markup)
) - If you need custom rendering method. As long as you are using React, you should be fine with defaults.
You can pass those options in an object during arboris intialization, e.g.:
const arboris = Arboris({ renderLimit: 5, timeLimit: 5000 })