{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/relay/issues/849","repository_url":"https://api.github.com/repos/facebook/relay","labels_url":"https://api.github.com/repos/facebook/relay/issues/849/labels{/name}","comments_url":"https://api.github.com/repos/facebook/relay/issues/849/comments","events_url":"https://api.github.com/repos/facebook/relay/issues/849/events","html_url":"https://github.com/facebook/relay/issues/849","id":134462182,"number":849,"title":"Loading indicator after this.props.relay.setVariables triggered fetch ?","user":{"login":"BerndWessels","id":1776695,"avatar_url":"https://avatars.githubusercontent.com/u/1776695?v=3","gravatar_id":"","url":"https://api.github.com/users/BerndWessels","html_url":"https://github.com/BerndWessels","followers_url":"https://api.github.com/users/BerndWessels/followers","following_url":"https://api.github.com/users/BerndWessels/following{/other_user}","gists_url":"https://api.github.com/users/BerndWessels/gists{/gist_id}","starred_url":"https://api.github.com/users/BerndWessels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BerndWessels/subscriptions","organizations_url":"https://api.github.com/users/BerndWessels/orgs","repos_url":"https://api.github.com/users/BerndWessels/repos","events_url":"https://api.github.com/users/BerndWessels/events{/privacy}","received_events_url":"https://api.github.com/users/BerndWessels/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-18T02:20:33Z","updated_at":"2016-02-18T02:46:26Z","closed_at":"2016-02-18T02:28:40Z","body":"Hi\r\n\r\nI use `react-router-relay` and within one of my routes I have a dropdown.\r\n\r\nNow I select a different value from that dropdown - that will call `this.props.relay.setVariables` which will fetch some data based on this variables. This data will be displayed in a chart component within the current route.\r\n\r\nHow can I provide a callback or something to know that the current component is fetching data now / finished fetching data now ?\r\n\r\nI need this to be able to show a loading indicator on top of the chart component.\r\n\r\nI think I can't use `react-router-relay` for this since it would only enable me to show a loading indicator instead of my current route - but I want to show the loading indicator within the current route.\r\n\r\nPlease help."},"comment":{"url":"https://api.github.com/repos/facebook/relay/issues/comments/185517836","html_url":"https://github.com/facebook/relay/issues/849#issuecomment-185517836","issue_url":"https://api.github.com/repos/facebook/relay/issues/849","id":185517836,"user":{"login":"BerndWessels","id":1776695,"avatar_url":"https://avatars.githubusercontent.com/u/1776695?v=3","gravatar_id":"","url":"https://api.github.com/users/BerndWessels","html_url":"https://github.com/BerndWessels","followers_url":"https://api.github.com/users/BerndWessels/followers","following_url":"https://api.github.com/users/BerndWessels/following{/other_user}","gists_url":"https://api.github.com/users/BerndWessels/gists{/gist_id}","starred_url":"https://api.github.com/users/BerndWessels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BerndWessels/subscriptions","organizations_url":"https://api.github.com/users/BerndWessels/orgs","repos_url":"https://api.github.com/users/BerndWessels/repos","events_url":"https://api.github.com/users/BerndWessels/events{/privacy}","received_events_url":"https://api.github.com/users/BerndWessels/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T02:46:26Z","updated_at":"2016-02-18T02:46:26Z","body":"Thank you @josephsavona \r\n\r\n[Here is the Question](http://stackoverflow.com/questions/35471836/loading-indicator-after-this-props-relay-setvariables-triggered-fetch) on Stack Overflow."}}