Skip to content
Source
Sign inSign up
TanStack/query

No exported member "Mutation" #2838

Send to my agent
ClosedBrodzko(GitHub profile, opens in a new tab) opened this issue 4 comments

Describe the bug It looks like exports from mutation.d.ts are not picked up correctly by TS. Instead a 'no exported member' error is thrown, making explicit typing with Mutation and other members impossible. Contrast that with importing Query which works fine.

To Reproduce Repro sandbox here

Expected behavior Type for Mutation is imported

  1. you should be able to import UseMutationOptions and UseMutationResult. What would you need Mutation for please?

  2. you should be able to import UseMutationOptions and UseMutationResult. What would you need Mutation for please?

    Strongly typing my global error handlers for QueryCache and MutationCache, see updated sandbox 🙂

  3. ah, now I see what you mean. if possible, would you like to contribute that?

  4. TkDodo closed this

  5. :tada: This issue has been resolved in version 3.32.1 :tada:

    The release is available on:

    Your semantic-release bot :package::rocket:

  6. tannerlinsley added labelsreleased

Sign in to join this conversation.