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

Error when refreshing scene to update Relay params #16

Open
dmwallace opened this issue Nov 19, 2016 · 0 comments
Open

Error when refreshing scene to update Relay params #16

dmwallace opened this issue Nov 19, 2016 · 0 comments

Comments

@dmwallace
Copy link

What is the correct way to refresh the scene, passing new params to the Relay.Container?

When I do an Action.refresh on a scene to update the queryConfig params, I get the following error:

ExceptionsManager.js:71 Warning: RelayContainer: component BusinessDirectory was rendered with variables that differ from the variables used to fetch fragment viewer. The fragment was fetched with variables {"count":5,"query":"sons"}, but rendered with variables {"count":10,"query":""}. This can indicate one of two possibilities:

  • The parent set the correct variables in the query - BusinessDirectory.getFragment('viewer', {...}) - but did not pass the same variables when rendering the component. Be sure to tell the component what variables to use by passing them as props: <BusinessDirectory ... count={...} query={...} />.
  • You are intentionally passing fake data to this component, in which case ignore this warning.

Thanks,

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

No branches or pull requests

1 participant