Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context not properly provided through data injector and subscriptions #4846

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Markionium
Copy link
Contributor

This PR fixes two issues we've encountered.

  1. ResolverContext isn't passed through the resolverDataInjector. This surfaces specifically when using nested resolvers.
  2. When updates propagate through the RelayStoreSubscriptions the context value is lost due the RelayStoreSubscriptions instance not receiving the context correctly.

I noticed two of the 3 paths in resolverDataInjector do not seem to be covered by tests.

@captbaritone
Copy link
Contributor

Looks good to me! Thanks for catching this. I'm out next week so I won't be able to land this until after Thanksgiving. I'll also try to see if we can define some additional tests to cover the cases you noticed were not tested.

@facebook-github-bot
Copy link
Contributor

@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

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

Successfully merging this pull request may close these issues.

3 participants