{"action":"created","issue":{"url":"https://api.github.com/repos/dekujs/deku/issues/315","labels_url":"https://api.github.com/repos/dekujs/deku/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/dekujs/deku/issues/315/comments","events_url":"https://api.github.com/repos/dekujs/deku/issues/315/events","html_url":"https://github.com/dekujs/deku/issues/315","id":124165034,"number":315,"title":"Question: redux integration","user":{"login":"rstacruz","id":74385,"avatar_url":"https://avatars.githubusercontent.com/u/74385?v=3","gravatar_id":"","url":"https://api.github.com/users/rstacruz","html_url":"https://github.com/rstacruz","followers_url":"https://api.github.com/users/rstacruz/followers","following_url":"https://api.github.com/users/rstacruz/following{/other_user}","gists_url":"https://api.github.com/users/rstacruz/gists{/gist_id}","starred_url":"https://api.github.com/users/rstacruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstacruz/subscriptions","organizations_url":"https://api.github.com/users/rstacruz/orgs","repos_url":"https://api.github.com/users/rstacruz/repos","events_url":"https://api.github.com/users/rstacruz/events{/privacy}","received_events_url":"https://api.github.com/users/rstacruz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-29T05:22:25Z","updated_at":"2015-12-29T07:55:38Z","closed_at":null,"body":"Do I need to call subscribe() to keep my dom tree updated?\r\n\r\nCan I use something other than redux as long as it implements .getState(), .subscribe() and dispatch()?\r\n\r\nShould I use a 1 redux store for UI, and 1 other redux store for app data?"},"comment":{"url":"https://api.github.com/repos/dekujs/deku/issues/comments/167741518","html_url":"https://github.com/dekujs/deku/issues/315#issuecomment-167741518","issue_url":"https://api.github.com/repos/dekujs/deku/issues/315","id":167741518,"user":{"login":"rstacruz","id":74385,"avatar_url":"https://avatars.githubusercontent.com/u/74385?v=3","gravatar_id":"","url":"https://api.github.com/users/rstacruz","html_url":"https://github.com/rstacruz","followers_url":"https://api.github.com/users/rstacruz/followers","following_url":"https://api.github.com/users/rstacruz/following{/other_user}","gists_url":"https://api.github.com/users/rstacruz/gists{/gist_id}","starred_url":"https://api.github.com/users/rstacruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstacruz/subscriptions","organizations_url":"https://api.github.com/users/rstacruz/orgs","repos_url":"https://api.github.com/users/rstacruz/repos","events_url":"https://api.github.com/users/rstacruz/events{/privacy}","received_events_url":"https://api.github.com/users/rstacruz/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T07:55:38Z","updated_at":"2015-12-29T07:55:38Z","body":"Cool :)\r\n\r\nI investigated a little further and found a few things.\r\n\r\n1. You don't need anything redux-like at all. deku v2 will work without redux or anything to replace it.\r\n\r\n2. To replace redux, you just need to implement your own `dispatch`, which you'll pass onto `dom.createRenderer`. The only use of `dispatch` is to be consumed by your own components (so if you don't use dispatch, you don't need it).\r\n\r\n3. The main use of redux is to be passed as the second parameter to `render(<Component />, store.getState())` (ie the `context`), which is simply an object passed onto every component in the tree. Your components are free to consume this `context` however it wants."}}