{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/redux-router/issues/144","labels_url":"https://api.github.com/repos/rackt/redux-router/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/rackt/redux-router/issues/144/comments","events_url":"https://api.github.com/repos/rackt/redux-router/issues/144/events","html_url":"https://github.com/rackt/redux-router/issues/144","id":114015788,"number":144,"title":"How to use react-router routerWillLeave hook","user":{"login":"flucivja","id":4375072,"avatar_url":"https://avatars.githubusercontent.com/u/4375072?v=3","gravatar_id":"","url":"https://api.github.com/users/flucivja","html_url":"https://github.com/flucivja","followers_url":"https://api.github.com/users/flucivja/followers","following_url":"https://api.github.com/users/flucivja/following{/other_user}","gists_url":"https://api.github.com/users/flucivja/gists{/gist_id}","starred_url":"https://api.github.com/users/flucivja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flucivja/subscriptions","organizations_url":"https://api.github.com/users/flucivja/orgs","repos_url":"https://api.github.com/users/flucivja/repos","events_url":"https://api.github.com/users/flucivja/events{/privacy}","received_events_url":"https://api.github.com/users/flucivja/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-10-29T09:57:54Z","updated_at":"2015-11-10T12:25:30Z","closed_at":"2015-11-07T15:44:50Z","body":"Hello,\r\n\r\nI am playing with redux-router and I have to prevent users to leave the route in some circumstances. Is it possible with redux-router? If so can you help me how to accomplish it? The react-router itself provides lyfecycle mixin https://github.com/rackt/react-router/blob/master/docs/API.md#lifecycle-mixin for that but I am not sure how to use it with combination of redux-router.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/rackt/redux-router/issues/comments/155407396","html_url":"https://github.com/rackt/redux-router/issues/144#issuecomment-155407396","issue_url":"https://api.github.com/repos/rackt/redux-router/issues/144","id":155407396,"user":{"login":"maitriyogin","id":1764628,"avatar_url":"https://avatars.githubusercontent.com/u/1764628?v=3","gravatar_id":"","url":"https://api.github.com/users/maitriyogin","html_url":"https://github.com/maitriyogin","followers_url":"https://api.github.com/users/maitriyogin/followers","following_url":"https://api.github.com/users/maitriyogin/following{/other_user}","gists_url":"https://api.github.com/users/maitriyogin/gists{/gist_id}","starred_url":"https://api.github.com/users/maitriyogin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maitriyogin/subscriptions","organizations_url":"https://api.github.com/users/maitriyogin/orgs","repos_url":"https://api.github.com/users/maitriyogin/repos","events_url":"https://api.github.com/users/maitriyogin/events{/privacy}","received_events_url":"https://api.github.com/users/maitriyogin/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T12:25:30Z","updated_at":"2015-11-10T12:25:30Z","body":"Hi,\r\nso the moral to this is that the order of the decorators is important!\r\nA decorator will return the decorated class so by having this order\r\n```\r\n@muiTheme\r\n@reactMixin.decorate(Lifecycle)\r\nexport class Shadow extends React.Component {\r\n```\r\nit works!\r\nby having this \r\n```\r\n@reactMixin.decorate(Lifecycle)\r\n@muiTheme\r\nexport class Shadow extends React.Component {\r\n```\r\ndoesn't ...\r\nAlthough I would have thought that muiTheme should return the Shadow with the routerWillLeave function ..\r\n/Stephen."}}