{"action":"created","issue":{"url":"https://api.github.com/repos/mattkrick/redux-optimistic-ui/issues/11","repository_url":"https://api.github.com/repos/mattkrick/redux-optimistic-ui","labels_url":"https://api.github.com/repos/mattkrick/redux-optimistic-ui/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/mattkrick/redux-optimistic-ui/issues/11/comments","events_url":"https://api.github.com/repos/mattkrick/redux-optimistic-ui/issues/11/events","html_url":"https://github.com/mattkrick/redux-optimistic-ui/pull/11","id":163573125,"number":11,"title":"Add support for the Saga pattern by enabling multiple actions in a transaction","user":{"login":"vjancik","id":4226865,"avatar_url":"https://avatars.githubusercontent.com/u/4226865?v=3","gravatar_id":"","url":"https://api.github.com/users/vjancik","html_url":"https://github.com/vjancik","followers_url":"https://api.github.com/users/vjancik/followers","following_url":"https://api.github.com/users/vjancik/following{/other_user}","gists_url":"https://api.github.com/users/vjancik/gists{/gist_id}","starred_url":"https://api.github.com/users/vjancik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjancik/subscriptions","organizations_url":"https://api.github.com/users/vjancik/orgs","repos_url":"https://api.github.com/users/vjancik/repos","events_url":"https://api.github.com/users/vjancik/events{/privacy}","received_events_url":"https://api.github.com/users/vjancik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-03T18:13:20Z","updated_at":"2016-07-03T21:17:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mattkrick/redux-optimistic-ui/pulls/11","html_url":"https://github.com/mattkrick/redux-optimistic-ui/pull/11","diff_url":"https://github.com/mattkrick/redux-optimistic-ui/pull/11.diff","patch_url":"https://github.com/mattkrick/redux-optimistic-ui/pull/11.patch"},"body":"**NOT FINISHED - DISCUSSION**\r\n\r\nI want to use this library in combination with **Redux Saga**. And with **Redux Saga**, you chain actions to create more complicated UI modifications. These chained actions can be synchronous or asynchronous.\r\n\r\nAnd I want some of these actions to be reversible, and optimistic. To do that I need to be able to revert multiple actions that are part of the same transaction.\r\n\r\nWith my changes, this is possible. All actions with the same `meta.optimistic.id` get filtered out of the history on a revert.\r\n\r\nThis should be useful for all kinds of asynchronous action libraries where you can chain actions.\r\nE.g. `redux-saga`, `redux-thunk`, `redux-observable`\r\n\r\nAnd of course, all functionality before these changes stays unaffected."},"comment":{"url":"https://api.github.com/repos/mattkrick/redux-optimistic-ui/issues/comments/230175943","html_url":"https://github.com/mattkrick/redux-optimistic-ui/pull/11#issuecomment-230175943","issue_url":"https://api.github.com/repos/mattkrick/redux-optimistic-ui/issues/11","id":230175943,"user":{"login":"vjancik","id":4226865,"avatar_url":"https://avatars.githubusercontent.com/u/4226865?v=3","gravatar_id":"","url":"https://api.github.com/users/vjancik","html_url":"https://github.com/vjancik","followers_url":"https://api.github.com/users/vjancik/followers","following_url":"https://api.github.com/users/vjancik/following{/other_user}","gists_url":"https://api.github.com/users/vjancik/gists{/gist_id}","starred_url":"https://api.github.com/users/vjancik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjancik/subscriptions","organizations_url":"https://api.github.com/users/vjancik/orgs","repos_url":"https://api.github.com/users/vjancik/repos","events_url":"https://api.github.com/users/vjancik/events{/privacy}","received_events_url":"https://api.github.com/users/vjancik/received_events","type":"User","site_admin":false},"created_at":"2016-07-03T21:17:46Z","updated_at":"2016-07-03T21:17:46Z","body":"No I have a loading counter, 0 <> +Inf, and a global Loading indicator, which is indicating something is loading if the counter is positive, then I have a per-entity loading boolean, to indicate if that particular entity is currently being loaded.\r\n\r\nThank you for the suggestions! I'll check out cashay.\r\n\r\nSo what do you think of these changes? I think they are a nice inexpensive improvement to the current functionality."}}
{"actor":{"display_login":"vjancik"}}