{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/relay/issues/97","labels_url":"https://api.github.com/repos/facebook/relay/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/facebook/relay/issues/97/comments","events_url":"https://api.github.com/repos/facebook/relay/issues/97/events","html_url":"https://github.com/facebook/relay/issues/97","id":101510401,"number":97,"title":"Q: Defining data requirement in Relay.Route?","user":{"login":"jardakotesovec","id":1590681,"avatar_url":"https://avatars.githubusercontent.com/u/1590681?v=3","gravatar_id":"","url":"https://api.github.com/users/jardakotesovec","html_url":"https://github.com/jardakotesovec","followers_url":"https://api.github.com/users/jardakotesovec/followers","following_url":"https://api.github.com/users/jardakotesovec/following{/other_user}","gists_url":"https://api.github.com/users/jardakotesovec/gists{/gist_id}","starred_url":"https://api.github.com/users/jardakotesovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jardakotesovec/subscriptions","organizations_url":"https://api.github.com/users/jardakotesovec/orgs","repos_url":"https://api.github.com/users/jardakotesovec/repos","events_url":"https://api.github.com/users/jardakotesovec/events{/privacy}","received_events_url":"https://api.github.com/users/jardakotesovec/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-17T21:10:04Z","updated_at":"2015-08-27T17:48:38Z","closed_at":"2015-08-27T17:48:38Z","body":"My understanding is that data requirements on Relay Containers are defined statically and are fetched regardless if component is shown. \r\n\r\nTherefore logic what data will be actually necessary has to be deduced in Relay.Route from the parameters - that might be coming from url parameters or some other context.\r\n\r\nSo I guess creating several Relay.Route objects covering different scenarios is way to go currently. I know that its obvious to use multiple Relay.Route when different views are shown. But I mean for example scenario when user is on  page with list of albums and clicks on one of them to see pop-up menu with songs list (which is kind of sub-route scenario). That could affect url (using react-router) that could switch to different Relay.Route object that would additionally call `getFragment` on that pop-up menu.\r\n\r\nI noticed in examples that Relay.Route always just call `getFragment` on `Component` which is argument. But I assume that calling `getFragment` directly in Relay.Route also from other components is also reasonable? \r\n\r\nDoes this approach make sense? Wondering if there are some other tricks how to conditionally change data requirement - and I mean decide whether data be fetched or not (for example based on the fact if pop-up menu is opened or not). \r\n\r\nThanks!\r\n"}}