Minor Changes
-
refactor: create SnapshotInstance in renderToString directly (#2393)
-
Add
removeCallfor shake function calls. Its initial default value matches the hooks that were previously inremoveCallParams, andremoveCallParamsnow defaults to empty. (#2423)removeCallremoves matched runtime hook calls entirely, replacing them withundefinedin expression positions and dropping them in statement positions.removeCallParamskeeps the existing behavior of preserving the call while stripping its arguments.
Patch Changes
-
Improve
shake.removeCallandshake.removeCallParamsin the React transform so they also match aliased runtime imports such asimport { useEffect as myUseEffect } ...and member calls such asReactLynxRuntime.useEffect(...)from default or namespace runtime imports. (#2437) -
Create element without ref for suspense in main thread. (#2426)
-
refactor: make
useEffect,useLayoutEffectanduseImperativeHandleno-op on the main thread (#2424)