Skip to content

select cannot be used with onSuccess at the same time, otherwise the type cannot be inferred #2037

@tonitrnel

Description

@tonitrnel

I want to do some set state operations in onSuccess fn, and then convert the data structure in select fn, but unable to infer the correct type.
https://codesandbox.io/s/stupefied-andras-otxpp?file=/src/App.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions