Fixed
- On React 18, every rendered
<Lottie>loggedUnexpected return value from a callback refin 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 thenullcall. 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.