Skip to content

Remove `shouldYield()` from the `startTransitionEffect()` API

Latest
Compare
Choose a tag to compare
@piotr-oles piotr-oles released this 03 Jun 22:36
· 7 commits to main since this release

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.