Skip to content

ActionCreatorWithNonInferrablePayload when using createSlice() creator #847

@amcsi

Description

@amcsi

Here is a TypeScript playground link.

After creating a (dynamic) slice, the payloads for the reducer/actions I create are not inferrable. It seems like there may be some disconnect between GenericFetchState<T> and State (even though State needs to extend GenericFetchState<T>), because this works if I don't allow the freedom of expanding the state shape and only allowed it to be exactly GenericFetchState<T>.

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