{"action":"created","issue":{"url":"https://api.github.com/repos/yelouafi/redux-saga/issues/302","repository_url":"https://api.github.com/repos/yelouafi/redux-saga","labels_url":"https://api.github.com/repos/yelouafi/redux-saga/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/yelouafi/redux-saga/issues/302/comments","events_url":"https://api.github.com/repos/yelouafi/redux-saga/issues/302/events","html_url":"https://github.com/yelouafi/redux-saga/issues/302","id":153129287,"number":302,"title":"Ability to put directly to the store (putRedux / putStore)","user":{"login":"tgriesser","id":154748,"avatar_url":"https://avatars.githubusercontent.com/u/154748?v=3","gravatar_id":"","url":"https://api.github.com/users/tgriesser","html_url":"https://github.com/tgriesser","followers_url":"https://api.github.com/users/tgriesser/followers","following_url":"https://api.github.com/users/tgriesser/following{/other_user}","gists_url":"https://api.github.com/users/tgriesser/gists{/gist_id}","starred_url":"https://api.github.com/users/tgriesser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgriesser/subscriptions","organizations_url":"https://api.github.com/users/tgriesser/orgs","repos_url":"https://api.github.com/users/tgriesser/repos","events_url":"https://api.github.com/users/tgriesser/events{/privacy}","received_events_url":"https://api.github.com/users/tgriesser/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yelouafi/redux-saga/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-04T22:27:25Z","updated_at":"2016-05-05T20:05:27Z","closed_at":"2016-05-05T20:05:27Z","body":"Would it make sense to add an effect similar to `put`, but which skips the redux-saga middleware and goes straight to the reducer? I currently have a `putRedux` effect which handles this, but the code to implement it is a bit ugly and far reaching - I wanted to see if there were any tips on how this could be easily implemented (with channels or otherwise), or if not if this would be a good addition to the core.\r\n\r\nAn example use case would be if you're receiving an action sent via a socket channel, and you'd want to put this external action to the redux store, but might not want to run the normal saga effect as would be called if the action were generated locally. \r\n\r\nAnother would be if you had an xhr request to create a new resource, and the response provides a bit more info about this object and you want to re-use the same action name, sending the value/action directly to the reducer."},"comment":{"url":"https://api.github.com/repos/yelouafi/redux-saga/issues/comments/217262839","html_url":"https://github.com/yelouafi/redux-saga/issues/302#issuecomment-217262839","issue_url":"https://api.github.com/repos/yelouafi/redux-saga/issues/302","id":217262839,"user":{"login":"tgriesser","id":154748,"avatar_url":"https://avatars.githubusercontent.com/u/154748?v=3","gravatar_id":"","url":"https://api.github.com/users/tgriesser","html_url":"https://github.com/tgriesser","followers_url":"https://api.github.com/users/tgriesser/followers","following_url":"https://api.github.com/users/tgriesser/following{/other_user}","gists_url":"https://api.github.com/users/tgriesser/gists{/gist_id}","starred_url":"https://api.github.com/users/tgriesser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgriesser/subscriptions","organizations_url":"https://api.github.com/users/tgriesser/orgs","repos_url":"https://api.github.com/users/tgriesser/repos","events_url":"https://api.github.com/users/tgriesser/events{/privacy}","received_events_url":"https://api.github.com/users/tgriesser/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T20:05:27Z","updated_at":"2016-05-05T20:05:27Z","body":"I'm going to close this, since the solution I'm after makes more sense if it's more generalized (skipping all middleware and not limited to just the sagas)."}}