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

latest releases: @lynx-js/web-mainthread-apis@0.17.2, @lynx-js/web-worker-rpc@0.17.2, @lynx-js/web-worker-runtime@0.17.2...
7 hours ago

Patch Changes

  • Add event.stopPropagation and event.stopImmediatePropagation in MTS, to help with event propagation control (#1835)

    function App() {
      function handleInnerTap(event: MainThread.TouchEvent) {
        'main thread';
        event.stopPropagation();
        // Or stop immediate propagation with
        // event.stopImmediatePropagation();
      }
    
      // OuterTap will not be triggered
      return (
        <view main-thread:bindtap={handleOuterTap}>
          <view main-thread:bindtap={handleInnerTap}>
            <text>Hello, world</text>
          </view>
        </view>
      );
    }

    Note, if this feature is used in Lazy Loading Standalone Project, both the Producer and the Consumer should update to latest version of @lynx-js/react to make sure the feature is available.

  • Fix the "ReferenceError: Node is not defined" error. (#1850)

    This error would happen when upgrading to @testing-library/jest-dom v6.9.0.

  • fix: optimize main thread event error message (#1838)

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.