Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Add immutable support#137

Merged
jbaxleyiii merged 3 commits into
masterfrom
redux-loop-example
Aug 13, 2016
Merged

Add immutable support#137
jbaxleyiii merged 3 commits into
masterfrom
redux-loop-example

Conversation

@jbaxleyiii
Copy link
Copy Markdown
Contributor

@jbaxleyiii jbaxleyiii commented Aug 13, 2016

This add support for an immutable tree via

<ApolloProvider store={myImmutableStore} client={myClient} immutable={true}><App></ApolloProvider>

@jbaxleyiii jbaxleyiii changed the title ensure it works with redux-loop Add immutable support Aug 13, 2016
@jbaxleyiii jbaxleyiii merged commit 58eb6d1 into master Aug 13, 2016
@jbaxleyiii jbaxleyiii deleted the redux-loop-example branch August 13, 2016 23:05
@zol zol removed the in progress label Aug 13, 2016
Comment thread src/ApolloProvider.tsx
if (props.store) {
this.store = props.store;
// support an immutable store alongside apollo store
if (props.immutable) props.client.initStore();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we wouldn't need this if we just had client.getStore() which initialized it for you before returning one? Or is there some other reason we need it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants