Skip to content

Try to re-think the visitsAsyncThunk, so that it wraps all the action creators in the same object #741

@acelaya

Description

@acelaya

Right now, the createVisitsAsyncThunk helper, does not really return an async thunk. Instead it returns an object wrapping the async thunk + the three extra actions to reset, fallback and large-load.

Ideally, it should return a regular async thunk that has been enhanced with the three extra actions, which also allows for a type-safe usage on the extra reducers.builder.addCase of any redux slice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions