Skip to content
This repository was archived by the owner on Jan 10, 2018. It is now read-only.

Reducer on global state #35

Closed
thaiat opened this issue Feb 10, 2016 · 3 comments
Closed

Reducer on global state #35

thaiat opened this issue Feb 10, 2016 · 3 comments

Comments

@thaiat
Copy link

thaiat commented Feb 10, 2016

Hi,

I understand that provideStore will map each reducer name to form the global state.
But how would you add a reducer that acts on the global state ?

@robwormald
Copy link
Contributor

typically, you wouldn't. all state is pretty much "global" (or alternately, "no state is global") - maybe i'm misunderstanding your question?

@robwormald
Copy link
Contributor

this is possible with the new middleware implementation, though that would typically be more for tooling use cases.

@Memeplexx
Copy link

I may be wrong, but I think what @thaiat is alluding to is something like this: reduxjs/redux#749. Seems like a valid use-case.

... and see this highly voted answer:
reduxjs/redux#749 (comment)

@robwormald do you know if this is somehow possible with ngrx/store?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants