Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow ApolloProvider Prop Updates #479
We have a use case in React Native where we switch the GraphQL endpoint dynamically while the app is running. This PR changes the ApolloProvider API by updating it's client and store when new props are delivered to the provider.
The new test is good, but I really want to see something that uses the
When the client changes, does the HOC make a new request to the new client? When the client changes and then
These are behaviors I’d like to see asserted with tests.
@calebmer I'm not sure if I'm familiar enough with this library to provide the depth of tests that you are looking for. I'm struggling to provide these tests within reasonable time as a result.
Is there an example that you can point to that would help me see what you're looking for?