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.