Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Middlewares #24

Open
gumil opened this issue Feb 11, 2019 · 0 comments
Open

Add support for Middlewares #24

gumil opened this issue Feb 11, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@gumil
Copy link
Owner

gumil commented Feb 11, 2019

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?

@gumil gumil added the enhancement New feature or request label Feb 11, 2019
@gumil gumil self-assigned this Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant