Skip to content

Releases: lynx-community/reactlynx-use

v0.2.0

24 Mar 07:09
79ed4f2

Choose a tag to compare

Minor Changes

Patch Changes

  • 18f8a51: Opt parameters of useListScrollEvent
  • df945b9: Add useListScrollEvent hook for handling list scroll events.
  • eda7116: docs: added useImmer entry in README.md
  • 648face: docs: fixed home icon entry

v0.1.3

12 Jan 13:36
9bc9a88

Choose a tag to compare

Patch Changes

  • 61137f1: feat: added use-immer hooks to manage states using immer

v0.1.2

07 Jan 02:55
0a7e53b

Choose a tag to compare

Patch Changes

v0.1.1

26 Dec 12:05
a15b09a

Choose a tag to compare

Patch Changes

  • e713f03: Ensure ESM imports include .js file extension.

v0.1.0

15 Dec 13:55
e67816f

Choose a tag to compare

Minor Changes

  • 087d5f2: Update peerDependencies @lynx-js/react to >= 0.105.1

v0.0.7

11 Dec 11:51
e89ce09

Choose a tag to compare

Patch Changes

  • 37ec953: Fix an issue for useTouchEmulation that emulated touchMove will be triggered by mouseMove, even when mouseDown not called
  • 37ec953: Add proper memoization for usePointerEvent and useTouchEmulation, so reRender will not triggered unintentionally

v0.0.6

09 Dec 13:05
03a4755

Choose a tag to compare

Patch Changes

  • 9db882a: Add usePointerEvent and useTouchEmulation to handle both TouchEvent and MouseEvent.

    import {
      usePointerEvent,
      CustomPointerEvent,
      CustomPointerEventMT,
    } from "@lynx-js/react-use";
    
    function App() {
      const pointerHandlers = usePointerEvent({
        onPointerDown: (event: CustomPointerEvent) => {
          console.log("Pointer down", event);
        },
        onPointerDownMT: (event: CustomPointerEventMT) => {
          "main thread";
          console.log("Pointer down on main thread", event);
        },
      });
    
      return <view {...pointerHandlers}></view>;
    }

v0.0.5

01 Dec 05:34
42a8bad

Choose a tag to compare

Patch Changes

  • 9803c0a: Use deep import paths for react-use.

v0.0.4

26 Nov 12:05
c001107

Choose a tag to compare

Patch Changes

  • 90dce6d: Introduce exposure hooks:

    • useExposureForNode: Node-level exposure hook with optional admission gating.
    • useExposureForPage: Page-level exposure hook handling multiple items via GlobalEventEmitter.
    • useStayTime: Tracks element visibility duration with optional manual control.

v0.0.3

25 Nov 12:14
98d8dc3

Choose a tag to compare

Patch Changes

  • 8b884d7: Add package.json#peerDependencies & set package.json#sideEffects to false