Skip to content

StoreCreator does not accept Partial<S> as preloadedState #3670

Closed
@nappy

Description

@nappy

When passing an Partial<StoreState> to createStore<StoreState, AnyAction, {}, {}> as preloaded state, even when using the result of combineReducers, type checking fails as of redux 4.0.5

Steps to Reproduce

Find a minimal demo here:
https://codesandbox.io/s/blazing-rgb-o8f03

What is the expected behavior?

It should not throw type errors as in redux 4.0.4
Might be related with #3485

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