feat(core): Add possibility to pass a callback to enabled. (#7566)
* Add possibility to pass a callback to enabled. * Refactor into using the same pattern as resolving staletime, with the use of a resolveEnabled util function * Update tests for enabled option as a callback * update docs * remove typo * Update enabled type in docs * remove duplicated test case * Fix eslint errors --------- Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc> Co-authored-by: John Pettersson <john.pettersson@carnegie.se>
J
John committed
31b9ab49af052cf12419fcdc4db8b9c035177eb3
Parent: 461f3af
Committed by GitHub <noreply@github.com>
on 6/25/2024, 2:10:16 PM