Skip to content

v3.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 20 Mar 22:42
· 18 commits to main since this release
36ad54e

Minor Changes

  • Add no-implicit-ref-callback-return transform (#369 7535bfc by @eps1lon)

    Ensures you don't accidentally return anything from ref callbacks since the return value was always ignored.
    With ref cleanups, this is no longer the case and flagged in types to avoid mistakes.

    -<div ref={current => (instance = current)} />
    +<div ref={current => {instance = current}} />

    The transform is opt-in in the preset-19 in case you already used ref cleanups in Canary releases.