Skip to content

[pull] main from lynx-family:main#541

Merged
pull[bot] merged 1 commit intocolinaaa:mainfrom
lynx-family:main
Mar 13, 2026
Merged

[pull] main from lynx-family:main#541
pull[bot] merged 1 commit intocolinaaa:mainfrom
lynx-family:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Mar 13, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

## Description

Fixed a potential crash in `@lynx-js/react` when spreading props that
include an undefined `ref`. This occurs because `applyRef` was being
called even when the `ref` value was null or undefined in a spread
object.

Added a regression test in `packages/react/testing-library`.

## Checklist

- [x] Tests updated (or not required).
- [ ] Documentation updated (or not required).
- [x] Changeset added, and when a BREAKING CHANGE occurs, it needs to be
clearly marked (or not required).

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Fixed a crash that occurred when spreading properties containing
undefined refs onto React components, improving application stability
and reliability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@pull pull bot added the ⤵️ pull label Mar 13, 2026
@pull pull bot merged commit d10ddb7 into colinaaa:main Mar 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant