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

[Feature Request] Create dynamicVariables for mutation MockedProvider #2466

Closed
gabrieluizramos opened this issue Oct 3, 2018 · 2 comments
Closed
Labels

Comments

@gabrieluizramos
Copy link

gabrieluizramos commented Oct 3, 2018

Intended outcome:
Use components at storybook, mocking a response for a mutation based on dynamic variables (e.g: using HoC that updates the variables and refetch the mutation)

Actual outcome:
Was throwing an error like no mocked responses for the query
screen shot 2018-10-03 at 11 10 24 am

How to reproduce the issue:
Creating a component with MockedProvider and using dynamic values as variables, such as:
https://codesandbox.io/s/w27mz5r44w

Version


Maybe, creating some kind of dynamicVariables inside the mocks array for mockedProvider would be a nice way to help these cases, as PR 2467

@gabrieluizramos
Copy link
Author

@hwillson Hi! Could help me with this Feature request (and the PR too), please? :)

@danilobuerger
Copy link
Contributor

Feature requests and non-bug related discussions are no longer managed in this repo. Feature requests should be opened in https://github.com/apollographql/apollo-feature-requests.

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

No branches or pull requests

3 participants