Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Releases: wevm/wagmi

@wagmi/[email protected]

23 Dec 16:02
ab2a819

Choose a tag to compare

Patch Changes

[email protected]

03 Dec 18:20
763d370

Choose a tag to compare

Minor Changes

  • Deprecated custom mutate function names and renamed to mutate/mutateAsync to reduce destructure key renaming fatigue and align with TanStack Query terminology. (#4878)

    Before

    Had to destructure hook result and often rename keys when using multiple of the same hook. Could decide not to destructure, but syntax becomes awkward for mutate functions (e.g. connect.connect or connect.connectAsync).

    const { connect, isPending: connectIsPending } = useConnect();
    const {
      writeContract: transfer,
      error: transferError,
      isPending: transferIsPending,
    } = useWriteContract();
    const { writeContract: approve, error: approveError } = useWriteContract();

    After

    Allows you to name the hook result whatever you want and not worry about also renaming properties.

    const connect = useConnect(); // connect.isPending
    const transfer = useWriteContract(); // transfer.mutate, transfer.error, transfer.isPending
    const approve = useWriteContract(); // approve.mutate, approve.error

@wagmi/[email protected]

03 Dec 18:20
763d370

Choose a tag to compare

Patch Changes

  • Deprecated custom mutate function names and renamed to mutate/mutateAsync to reduce destructure key renaming fatigue and align with TanStack Query terminology. (#4878)

    Before

    Had to destructure hook result and often rename keys when using multiple of the same hook. Could decide not to destructure, but syntax becomes awkward for mutate functions (e.g. connect.connect or connect.connectAsync).

    const { connect, isPending: connectIsPending } = useConnect();
    const {
      writeContract: transfer,
      error: transferError,
      isPending: transferIsPending,
    } = useWriteContract();
    const { writeContract: approve, error: approveError } = useWriteContract();

    After

    Allows you to name the hook result whatever you want and not worry about also renaming properties.

    const connect = useConnect(); // connect.isPending
    const transfer = useWriteContract(); // transfer.mutate, transfer.error, transfer.isPending
    const approve = useWriteContract(); // approve.mutate, approve.error

[email protected]

26 Nov 21:59
7e58fe1

Choose a tag to compare

Patch Changes

@wagmi/[email protected]

26 Nov 21:59
7e58fe1

Choose a tag to compare

Patch Changes

@wagmi/[email protected]

26 Nov 21:59
7e58fe1

Choose a tag to compare

Patch Changes

  • Fixed account ordering in baseAccount connection response (#4882)

[email protected]

20 Nov 02:15
1245dac

Choose a tag to compare

Patch Changes

[email protected]

20 Nov 17:45
793e3ff

Choose a tag to compare

Patch Changes

  • Bumped next.js template dependencies (d717d86)

@wagmi/[email protected]

20 Nov 02:15
1245dac

Choose a tag to compare

Patch Changes

@wagmi/[email protected]

20 Nov 02:15
1245dac

Choose a tag to compare

Patch Changes

  • Fixed baseAccount reconnect behavior (#4884)