Skip to content

Property 'then' does not exist on type 'AsyncThunkAction' #849

@gpessa

Description

@gpessa

I have an async action created with createAsyncThunk. Link
Now I bind the dispatch to it with bindActionCreators and I expose the action with a custom hook. Link
If now I try to use the async action, the then is not a recognized property and I get an error Link

Property 'then' does not exist on type 'AsyncThunkAction<number, number, {}>'

Do you have any ideas?
My dispatch is custom typed and therefore everything should be correct

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