Skip to content

createThreadSafeStore doesn't support ReducerForActionType #92

Closed
@SeanOThomas

Description

@SeanOThomas

To create a store using createThreadSafeStore, you must provide:

typealias Reducer<State> = (state: State, action: Any) -> State

And not:

typealias ReducerForActionType<TState, TAction> = (state: TState, action: TAction) -> TState

Can we add support for the latter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions