{"action":"opened","issue":{"url":"https://api.github.com/repos/omnidan/redux-undo/issues/107","repository_url":"https://api.github.com/repos/omnidan/redux-undo","labels_url":"https://api.github.com/repos/omnidan/redux-undo/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/omnidan/redux-undo/issues/107/comments","events_url":"https://api.github.com/repos/omnidan/redux-undo/issues/107/events","html_url":"https://github.com/omnidan/redux-undo/issues/107","id":169868231,"number":107,"title":"compatibility with redux-loop","user":{"login":"DavyDeDurpel","id":12758369,"avatar_url":"https://avatars.githubusercontent.com/u/12758369?v=3","gravatar_id":"","url":"https://api.github.com/users/DavyDeDurpel","html_url":"https://github.com/DavyDeDurpel","followers_url":"https://api.github.com/users/DavyDeDurpel/followers","following_url":"https://api.github.com/users/DavyDeDurpel/following{/other_user}","gists_url":"https://api.github.com/users/DavyDeDurpel/gists{/gist_id}","starred_url":"https://api.github.com/users/DavyDeDurpel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavyDeDurpel/subscriptions","organizations_url":"https://api.github.com/users/DavyDeDurpel/orgs","repos_url":"https://api.github.com/users/DavyDeDurpel/repos","events_url":"https://api.github.com/users/DavyDeDurpel/events{/privacy}","received_events_url":"https://api.github.com/users/DavyDeDurpel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-08T08:25:15Z","updated_at":"2016-08-08T08:25:15Z","closed_at":null,"body":"I can't get redux-undo working in combination with redux-loop (and I guess any other store enhancer might cause troubles). \r\nThe issue is that using the loop method inside the undoable wrapped reducer returns an array containing the state and another object that is recognized by redux-loop.  Redux-undo however stores this array inside 'present' and that breaks the code later on.\r\n\r\nI only have a few months experience with React Native so I might not see the complete picture yet but I guess only 2 solutions exist:\r\n\r\n- or I modify all my logic to check for that array and act accordingly (but that messes up my code ;-) )\r\n- or a new callback is added to redux-undo that is called the moment the state is set as the present state (which would allow us in this case to only do something like: 'return state[0];')\r\n\r\nWhat do you think?\r\n "}}
{"actor":{"display_login":"DavyDeDurpel"}}