{"action":"created","issue":{"url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/issues/118","repository_url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware","labels_url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/issues/118/comments","events_url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/issues/118/events","html_url":"https://github.com/glenjamin/webpack-hot-middleware/issues/118","id":167475063,"number":118,"title":"Idea: double-save to refresh browser","user":{"login":"ericclemmons","id":15182,"avatar_url":"https://avatars.githubusercontent.com/u/15182?v=3","gravatar_id":"","url":"https://api.github.com/users/ericclemmons","html_url":"https://github.com/ericclemmons","followers_url":"https://api.github.com/users/ericclemmons/followers","following_url":"https://api.github.com/users/ericclemmons/following{/other_user}","gists_url":"https://api.github.com/users/ericclemmons/gists{/gist_id}","starred_url":"https://api.github.com/users/ericclemmons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericclemmons/subscriptions","organizations_url":"https://api.github.com/users/ericclemmons/orgs","repos_url":"https://api.github.com/users/ericclemmons/repos","events_url":"https://api.github.com/users/ericclemmons/events{/privacy}","received_events_url":"https://api.github.com/users/ericclemmons/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-25T21:54:00Z","updated_at":"2016-07-28T18:30:06Z","closed_at":null,"body":"tldr; Save a file once, everything's normal. Save a file _twice_ (like a double-tap), browser refreshes.\r\n\r\n### Scenario\r\n\r\n> _Web app that shows how much of a product is left in stock.\r\n\r\n1. I'm viewing a product page: _1 left in stock_.\r\n2. I add it to my cart.\r\n3. Open a separate window, viewing that same product, I still see _1 left in stock_, even though it's in Step 1's cart.\r\n4. I realize there's a bug in my API from showing the correct total.\r\n5. I fix the bug in the API, **save the code**, HMR reloads the server-code. _The browser still isn't in sync, though_ without a refresh.\r\n6. I **save the code _again_**, webpack doesn't build anything (no changes), but _the browser HMR sends a `reload` event_ and I correctly see _0 left in stock_.\r\n\r\n- - -\r\n\r\nI'm asking here because `webpack-hot-middleware` is what's triggering reload events in the browser and seems like a likely place to be able to trigger the event.\r\n\r\nCool DX, but doable?  I'd be happy to help if you can help me figure out _where_ to even do this."},"comment":{"url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/issues/comments/235983635","html_url":"https://github.com/glenjamin/webpack-hot-middleware/issues/118#issuecomment-235983635","issue_url":"https://api.github.com/repos/glenjamin/webpack-hot-middleware/issues/118","id":235983635,"user":{"login":"ericclemmons","id":15182,"avatar_url":"https://avatars.githubusercontent.com/u/15182?v=3","gravatar_id":"","url":"https://api.github.com/users/ericclemmons","html_url":"https://github.com/ericclemmons","followers_url":"https://api.github.com/users/ericclemmons/followers","following_url":"https://api.github.com/users/ericclemmons/following{/other_user}","gists_url":"https://api.github.com/users/ericclemmons/gists{/gist_id}","starred_url":"https://api.github.com/users/ericclemmons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericclemmons/subscriptions","organizations_url":"https://api.github.com/users/ericclemmons/orgs","repos_url":"https://api.github.com/users/ericclemmons/repos","events_url":"https://api.github.com/users/ericclemmons/events{/privacy}","received_events_url":"https://api.github.com/users/ericclemmons/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T18:30:05Z","updated_at":"2016-07-28T18:30:05Z","body":"@glenjamin I <3 you.  I'll see what I can do :)"}}
{"actor":{"display_login":"ericclemmons"}}