Skip to content

v3.1.1

Latest

Choose a tag to compare

@Gamote Gamote released this 27 Aug 18:30

Fixed

  • On React 18, every rendered <Lottie> logged Unexpected return value from a callback ref in development, twice per mount and unmount, because the merged ref returned a cleanup React 18 does not accept. It now returns one only when a ref it merges returned a cleanup of its own; otherwise both React versions clear every ref through the null call. Cosmetic only: nothing leaked, and React 19 behaves as before. The React 18 test lane now fails on any console output from a mount and unmount. #140, fixed in #141.

Nothing breaking: the peer range, the exports and every existing prop are unchanged.