github preactjs/preact 5.1.0-beta.20

latest releases: 10.21.0, 10.20.2, 10.20.1...
pre-release7 years ago

Minor Changes

  • Fix an inconsistency with how defaultProps are applied (preactjs/preact-compat#47)

    A key in props with a value of undefined should be treated as a missing key, and the value from defaultProps should be used in its place.

  • Switch setImmediate backend from MessageChannel to Promise#then (change diff)

    This is much faster!

    However: This comes with the caveat of being unusable for animation. While this matches the use-case for setImmediate() within Preact (debouncing rendering), it means that componentDidUpdate() and setState() callbacks should not be used as a means of animation. *

    * This is only true when using the built-in debounce mechanism. Overriding to requestAnimationFrame is still a great way to do animations via these hooks.

Don't miss a new preact release

NewReleases is sending notifications on new releases.