Minor Changes
- Simplify hooks for main-thread runtime, which only can run during the first screen. (#2441)
Patch Changes
-
Remove stale gestures when gestures are removed (#2297)
-
Trace refactor (#2466)
- Remove
ReactLynx::renderOpcodesfrom the trace - Use
ReactLynx::transferRootto measure the time spent transferring the root to the background thread
- Remove
-
refactor: set state of suspense to render fallback (#2450)
-
Support rstest for testing library, you can use rstest with RLTL now: (#2328)
Create a config file
rstest.config.tswith the following content:import { defineConfig } from '@rstest/core'; import { withLynxConfig } from '@lynx-js/react/testing-library/rstest-config'; export default defineConfig({ extends: withLynxConfig(), });
@lynx-js/react/testing-library/rstest-configwill automatically load yourlynx.config.tsand apply the same configuration to rstest, so you can keep your test environment consistent with your development environment.And then use rstest as usual:
$ rstest
For more usage detail, see https://rstest.rs/
-
Update preact version (#2456)
-
Add
nodeIndexto generated FiberElement creation calls and expose React transform debug metadata asuiSourceMapRecords. (#2402)