-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
I have a couple questions about the Apollo Client store implementation
I see in the example that we have one reducer called apollo. What state does this represent? The current query? The thing with ambitious projects like this is I feel that we should be thinking long term. Having all state under one reducer seems like a bad idea and hard to manage going forward. Imagine mapping state to props over a huge reducer whos shape may be nested etc.
you may end up with something like
function mapStateToProps(state) {
return {
job: state.apolloReucer.job.title
foo: state.apolloReducer.foo.bar.baz
};
}
Is there a way we can represent each query has a slice of our state. Where we somehow generate multiple reducers to manage domain state from different queries?
Sorry if this is naive in approach, just going off the docs at this point!
Metadata
Metadata
Assignees
Labels
No labels