Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/lemon-streets-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@lynx-js/react": minor
Comment thread
Yradex marked this conversation as resolved.
---

fix: Delay execution of `runOnMainThread()` during initial render

When called during the initial render, `runOnMainThread()` would execute before the `main-thread:ref` was hydrated, causing it to be incorrectly set to null.

This change delays the function's execution to ensure the ref is available and correctly assigned.
5 changes: 5 additions & 0 deletions .changeset/smooth-dragons-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lynx-js/react-rsbuild-plugin": patch
---

Be compat with `@lynx-js/react` v0.113.0
77 changes: 0 additions & 77 deletions packages/react/runtime/__test__/worklet/runOnMainThread.test.js

This file was deleted.

Loading
Loading