graphprotocol / mutations

Apache License 2.0
4 stars 5 forks source link

Provide State Observer W/O Using Secret Context Value #5

Closed dOrgJelli closed 4 years ago

dOrgJelli commented 4 years ago

In the case where developers are not using useMutation or Mutation from the apollo-react package, we still want them to be able to add a state observer. I propose we change the name in the context to a more "normal" name, maybe "statesSubscriber" or something like that. This way all they have to do is set this context value at the time of querying and they're good to go.