{"action":"created","issue":{"url":"https://api.github.com/repos/ReduxKit/ReduxKit/issues/10","labels_url":"https://api.github.com/repos/ReduxKit/ReduxKit/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/ReduxKit/ReduxKit/issues/10/comments","events_url":"https://api.github.com/repos/ReduxKit/ReduxKit/issues/10/events","html_url":"https://github.com/ReduxKit/ReduxKit/issues/10","id":123651778,"number":10,"title":"Does ApplyMiddleware work with custom StateStreams","user":{"login":"Aleksion","id":3367641,"avatar_url":"https://avatars.githubusercontent.com/u/3367641?v=3","gravatar_id":"","url":"https://api.github.com/users/Aleksion","html_url":"https://github.com/Aleksion","followers_url":"https://api.github.com/users/Aleksion/followers","following_url":"https://api.github.com/users/Aleksion/following{/other_user}","gists_url":"https://api.github.com/users/Aleksion/gists{/gist_id}","starred_url":"https://api.github.com/users/Aleksion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aleksion/subscriptions","organizations_url":"https://api.github.com/users/Aleksion/orgs","repos_url":"https://api.github.com/users/Aleksion/repos","events_url":"https://api.github.com/users/Aleksion/events{/privacy}","received_events_url":"https://api.github.com/users/Aleksion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ReduxKit/ReduxKit/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"agentk","id":117041,"avatar_url":"https://avatars.githubusercontent.com/u/117041?v=3","gravatar_id":"","url":"https://api.github.com/users/agentk","html_url":"https://github.com/agentk","followers_url":"https://api.github.com/users/agentk/followers","following_url":"https://api.github.com/users/agentk/following{/other_user}","gists_url":"https://api.github.com/users/agentk/gists{/gist_id}","starred_url":"https://api.github.com/users/agentk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentk/subscriptions","organizations_url":"https://api.github.com/users/agentk/orgs","repos_url":"https://api.github.com/users/agentk/repos","events_url":"https://api.github.com/users/agentk/events{/privacy}","received_events_url":"https://api.github.com/users/agentk/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-12-23T12:31:06Z","updated_at":"2015-12-24T05:23:58Z","closed_at":null,"body":"I noticed that the subscribe function that's provided to the middlewareApi's is set to the default implementation:\r\n\r\n```swift\r\n            let middlewareApi = Store(\r\n                dispatch: { dispatch($0) },\r\n                subscribe: { _ in SimpleReduxDisposable(disposed: { false }, dispose: {}) },\r\n                getState: store.getState)\r\n```\r\n\r\nPreviously the middlewareApi didn't have access to the subscribe function - and I don't know whether we need it. \r\n\r\nBut I fail to see how that function is actually doing anything atm?"},"comment":{"url":"https://api.github.com/repos/ReduxKit/ReduxKit/issues/comments/167044299","html_url":"https://github.com/ReduxKit/ReduxKit/issues/10#issuecomment-167044299","issue_url":"https://api.github.com/repos/ReduxKit/ReduxKit/issues/10","id":167044299,"user":{"login":"agentk","id":117041,"avatar_url":"https://avatars.githubusercontent.com/u/117041?v=3","gravatar_id":"","url":"https://api.github.com/users/agentk","html_url":"https://github.com/agentk","followers_url":"https://api.github.com/users/agentk/followers","following_url":"https://api.github.com/users/agentk/following{/other_user}","gists_url":"https://api.github.com/users/agentk/gists{/gist_id}","starred_url":"https://api.github.com/users/agentk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentk/subscriptions","organizations_url":"https://api.github.com/users/agentk/orgs","repos_url":"https://api.github.com/users/agentk/repos","events_url":"https://api.github.com/users/agentk/events{/privacy}","received_events_url":"https://api.github.com/users/agentk/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T05:23:58Z","updated_at":"2015-12-24T05:23:58Z","body":"I've moved MiddlewareApi out to it's own type in 02ade854a56435db461be5a73253376426ad3288.\r\nIt's definitely clearer that way. The name change will need to be reflected in any middleware using Store<State>. Feel free to merge it if your happy."}}