feat(notifyManager): setScheduler configuration (#6600)
* feat(notifyManager): add batch method configuration add the method setBatchMethod on the notifyManager to configure the batching method. Inspiration taken from redux[^redux] [^redux]: https://redux-toolkit.js.org/api/autoBatchEnhancer#autobatchenhancer-1 * fix(notifyManager): remove scheduleMicrotask import for test:eslint * fix(notifyManager): fix eslint (incorrectly) complaining * feat(notifyManager): ability to add custom schedule function * feat(examples/solid): demonstrate layout shift * feat(notifyManager): add tests for setBatchMethod * refactor(utils): remove unnecessary scheduleMicrotask * feat(notifyManager): add docs * fix(pnpm-lock.yaml): Revert accidentally updated lockfile * fix: run prettier * docs(notifyManager): add requestAnimationFrame mdn link Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc> * fix: revert pnpm-lock.yaml * feat(notifyManager): simplify setBatchMethod interface, rename to setScheduler * fix(solid-start-streaming): fix batch-methods example * refactor: init scheduleFn when declaring it --------- Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
N
Nathan Huisman committed
3265ec3262b5ab1db883f30722dc8ff13fff31a7
Parent: 50230c5
Committed by GitHub <noreply@github.com>
on 12/31/2023, 12:25:02 PM