Run long effects without blocking the main thread
We need the runWithPriority()
function from the scheduler
package if we want to update state inside transition effect. This means that exposing shouldYield()
doesn't solve scheduler
dependency issue, so it's better to be consistent and always require direct usage of the scheduler
package.
In order to have consistent priority context, we should wrap first iteration with runWithPriority()
(next iterations uses scheduleCallback()
which defines current priority)
Add "src" to "files" in package.json so bundlers can pick-up source files for source-map generation.
Release initial version of the useTransitionEffect()
hook