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

Add immutable support #137

Merged
merged 3 commits into from
Aug 13, 2016
Merged

Add immutable support #137

merged 3 commits into from
Aug 13, 2016

Conversation

jbaxleyiii
Copy link
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
@@ -51,6 +53,8 @@ export default class ApolloProvider extends Component<ProviderProps, any> {

if (props.store) {
this.store = props.store;
// support an immutable store alongside apollo store
if (props.immutable) props.client.initStore();
Copy link
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