github lynx-family/lynx-stack @lynx-js/react@0.122.1

latest releases: @lynx-js/react-alias-rsbuild-plugin@0.17.2, @lynx-js/web-core@0.22.1, @lynx-js/web-rsbuild-server-middleware@0.22.1...
4 hours ago

Patch Changes

  • Support cloneElement for more ReactLynx snapshot scenarios, including compiled snapshots, runtime-created snapshots, and repeated clones. (#2857)

    Cloning compiled snapshots still cannot replace children and will warn in that case. Use components or runtime-created snapshots when clone-time children replacement is needed.

  • Preserve list item platform info on background-thread snapshots for hydrate (#2904)
    diffing.

  • Support enabling preact devtools in production via the REACT_DEVTOOL environment variable. (#2880)

    By default @lynx-js/preact-devtools is aliased away in production builds. Setting the REACT_DEVTOOL environment variable now:

    1. keeps a user-imported @lynx-js/preact-devtools from being stripped;
    2. defines __REACT_DEVTOOL__, which gates the dev-only runtime hooks devtools depends on (such as injectLepusMethods) so they also run in production;
    3. keeps function/class names during minification (keep_fnames/keep_classnames), which devtools needs to resolve component names (type.name) and to reconstruct the hook tree (it matches minified stack frames by function name).

    @lynx-js/react/debug remains development-only.

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.