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

Allow resolvers to be passed into MockedProvider and set a default #2825

Merged
merged 2 commits into from
Feb 27, 2019

Commits on Feb 27, 2019

  1. Allow resolvers to be passed into MockedProvider and set a default

    After the changes in apollographql/apollo-client#4499,
    when `MockedProvider` is currently used it doesn't have any
    `resolvers` set. This means `@client` directives are passed into
    the link chain. Since we don't currently allow people to modify the
    link chain that `MockedProvider` uses, it's safe to assume people won't
    want this behaviour, as they can't test things like `apollo-link-state`
    this way. This commit sets a default `resolvers` value of `{}` to
    enable AC 2.5's new local state handling, and opens the door for
    passing custom resolvers into the `MockedProvider` via props.
    
    Helps fix apollographql/fullstack-tutorial#73.
    hwillson committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    6632862 View commit details
    Browse the repository at this point in the history
  2. Changelog update

    hwillson committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    f1b1103 View commit details
    Browse the repository at this point in the history