Skip to content

Releases: piotr-oles/use-transition-effect

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

03 Jun 22:36
Compare
Choose a tag to compare

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.

Wrap initial iteration with runWithPriority()

02 Jun 22:07
Compare
Choose a tag to compare

In order to have consistent priority context, we should wrap first iteration with runWithPriority() (next iterations uses scheduleCallback() which defines current priority)

Improve source-maps support

02 Jun 20:30
Compare
Choose a tag to compare

Add "src" to "files" in package.json so bundlers can pick-up source files for source-map generation.

Initial release

02 Jun 20:28
Compare
Choose a tag to compare

Release initial version of the useTransitionEffect() hook