Skip to main content

ShouldRunCheckFn

An optional method which is used to decide whether to run the check() function. Returns a JSON-compatible object which is cached and compared between calls. If the value is the same, then the check() function is not called.

Use of this function is an optimization technique which can be useful when the check() function is expensive and should be kept to an absolute minimum.

Example

Ts
Signature
Was this chapter helpful?
Report Issue
Edited Feb 10, 2026ยทEdit this page