torhovland / blazor-redux

Connecting a Redux state store with Blazor.
Other
481 stars 48 forks source link

Question: A way to build something like Redux Logger? #8

Open chanan opened 6 years ago

chanan commented 6 years ago

Hi,

In react/redux I use Redux Logger to log the actions to console in development. I was wondering if you have a plan to allow middleware or maybe just build logging to the console directly into Blazor-Redux?

PS - I am happy to help with the logging or other pieces.

Chanan

torhovland commented 6 years ago

Hi, @chanan

Sure, I'm interested in adding more capabilities from the Redux ecosystem. I've been thinking about introducing middleware, but need to see how that would fit first.

Feel free to submit a PR, though.

chanan commented 6 years ago

@torhovland Sure, do you have any ideas on how to do it, or should I see what I come with, submit a PR and chat about it once there is something?

chanan commented 6 years ago

Submitted a PR: https://github.com/torhovland/blazor-redux/pull/9 with a first stab at middleware, still needs love, but you will see the idea.