{"action":"created","issue":{"url":"https://api.github.com/repos/apollostack/apollo-client/issues/307","repository_url":"https://api.github.com/repos/apollostack/apollo-client","labels_url":"https://api.github.com/repos/apollostack/apollo-client/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/apollostack/apollo-client/issues/307/comments","events_url":"https://api.github.com/repos/apollostack/apollo-client/issues/307/events","html_url":"https://github.com/apollostack/apollo-client/issues/307","id":162019333,"number":307,"title":"Offline usage","user":{"login":"cdroulers","id":708798,"avatar_url":"https://avatars.githubusercontent.com/u/708798?v=3","gravatar_id":"","url":"https://api.github.com/users/cdroulers","html_url":"https://github.com/cdroulers","followers_url":"https://api.github.com/users/cdroulers/followers","following_url":"https://api.github.com/users/cdroulers/following{/other_user}","gists_url":"https://api.github.com/users/cdroulers/gists{/gist_id}","starred_url":"https://api.github.com/users/cdroulers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdroulers/subscriptions","organizations_url":"https://api.github.com/users/cdroulers/orgs","repos_url":"https://api.github.com/users/cdroulers/repos","events_url":"https://api.github.com/users/cdroulers/events{/privacy}","received_events_url":"https://api.github.com/users/cdroulers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apollostack/apollo-client/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-23T20:46:48Z","updated_at":"2016-06-23T21:29:34Z","closed_at":null,"body":"Hello,\r\n\r\nI've started experimenting with Apollo-client with my GraphQL Server to understand how it works and see if it can work for my offline needs. So far, I've been able to store the redux state into localStorage and read it on page load. It seems to then be able to show the page (on refresh) without hitting the server.\r\n\r\nThough when I `refetch()` a query, it still hits the GraphQL Server even though the data is in the store and `forceFetch` is `false`. Am I using the API wrong?\r\n\r\nIs there a guide on getting offline first to work? Or just anything that could point me in the right direction to understanding what's going on better?"},"comment":{"url":"https://api.github.com/repos/apollostack/apollo-client/issues/comments/228189897","html_url":"https://github.com/apollostack/apollo-client/issues/307#issuecomment-228189897","issue_url":"https://api.github.com/repos/apollostack/apollo-client/issues/307","id":228189897,"user":{"login":"cdroulers","id":708798,"avatar_url":"https://avatars.githubusercontent.com/u/708798?v=3","gravatar_id":"","url":"https://api.github.com/users/cdroulers","html_url":"https://github.com/cdroulers","followers_url":"https://api.github.com/users/cdroulers/followers","following_url":"https://api.github.com/users/cdroulers/following{/other_user}","gists_url":"https://api.github.com/users/cdroulers/gists{/gist_id}","starred_url":"https://api.github.com/users/cdroulers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdroulers/subscriptions","organizations_url":"https://api.github.com/users/cdroulers/orgs","repos_url":"https://api.github.com/users/cdroulers/repos","events_url":"https://api.github.com/users/cdroulers/events{/privacy}","received_events_url":"https://api.github.com/users/cdroulers/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T21:29:34Z","updated_at":"2016-06-23T21:29:34Z","body":"I'll make a repro over the weekend!\nOn 23 Jun 2016 5:05 p.m., \"Sashko Stubailo\" <notifications@github.com>\nwrote:\n\n> @cdroulers <https://github.com/cdroulers> queries should automatically\n> refetch when the variable changes. React apollo compares the variables and\n> queries before and after a state change, and reruns them if they are\n> different.\n>\n> Do you have a code sample by any chance? It sounds like what you're doing\n> should work really well, but perhaps there is a small bug.\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/apollostack/apollo-client/issues/307#issuecomment-228183514>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe/AArQvm23zBsQrQ4YI8Qhbu2mnhHj1NG3ks5qOvT8gaJpZM4I9OOR>\n> .\n>\n"}}
{"actor":{"display_login":"cdroulers"}}