Skip to content

Add support for Middlewares #24

@gumil

Description

@gumil

Add ability to watch incoming actions and outgoing states

Something like this:

Kaskade.create<Action, State>(initialState) {
    watchActions { action ->
        // do something like send analytics
    }

    watchStates { state ->
        // do something like send analytics
    }
}

Is adding a middleware to the reducer also useful?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions