{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/fish-redux/issues/121","repository_url":"https://api.github.com/repos/alibaba/fish-redux","labels_url":"https://api.github.com/repos/alibaba/fish-redux/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/fish-redux/issues/121/comments","events_url":"https://api.github.com/repos/alibaba/fish-redux/issues/121/events","html_url":"https://github.com/alibaba/fish-redux/issues/121","id":425212715,"node_id":"MDU6SXNzdWU0MjUyMTI3MTU=","number":121,"title":"请教一下,如何在框架中处理其它lifecycle,","user":{"login":"GordonHuangYong","id":20039800,"node_id":"MDQ6VXNlcjIwMDM5ODAw","avatar_url":"https://avatars2.githubusercontent.com/u/20039800?v=4","gravatar_id":"","url":"https://api.github.com/users/GordonHuangYong","html_url":"https://github.com/GordonHuangYong","followers_url":"https://api.github.com/users/GordonHuangYong/followers","following_url":"https://api.github.com/users/GordonHuangYong/following{/other_user}","gists_url":"https://api.github.com/users/GordonHuangYong/gists{/gist_id}","starred_url":"https://api.github.com/users/GordonHuangYong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GordonHuangYong/subscriptions","organizations_url":"https://api.github.com/users/GordonHuangYong/orgs","repos_url":"https://api.github.com/users/GordonHuangYong/repos","events_url":"https://api.github.com/users/GordonHuangYong/events{/privacy}","received_events_url":"https://api.github.com/users/GordonHuangYong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-03-26T03:44:05Z","updated_at":"2019-03-27T03:43:56Z","closed_at":"2019-03-27T03:43:56Z","author_association":"NONE","body":"比如:类似iOS的viewDidload, active等. \r\nflutter自带的didpushrouter等.\r\n按照本框架的介绍, 应该是放在effect中处理的吧?"},"comment":{"url":"https://api.github.com/repos/alibaba/fish-redux/issues/comments/476959372","html_url":"https://github.com/alibaba/fish-redux/issues/121#issuecomment-476959372","issue_url":"https://api.github.com/repos/alibaba/fish-redux/issues/121","id":476959372,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3Njk1OTM3Mg==","user":{"login":"zjuwjf","id":9562940,"node_id":"MDQ6VXNlcjk1NjI5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/9562940?v=4","gravatar_id":"","url":"https://api.github.com/users/zjuwjf","html_url":"https://github.com/zjuwjf","followers_url":"https://api.github.com/users/zjuwjf/followers","following_url":"https://api.github.com/users/zjuwjf/following{/other_user}","gists_url":"https://api.github.com/users/zjuwjf/gists{/gist_id}","starred_url":"https://api.github.com/users/zjuwjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjuwjf/subscriptions","organizations_url":"https://api.github.com/users/zjuwjf/orgs","repos_url":"https://api.github.com/users/zjuwjf/repos","events_url":"https://api.github.com/users/zjuwjf/events{/privacy}","received_events_url":"https://api.github.com/users/zjuwjf/received_events","type":"User","site_admin":false},"created_at":"2019-03-27T03:43:56Z","updated_at":"2019-03-27T03:43:56Z","author_association":"CONTRIBUTOR","body":"参考\r\n\r\n```dart\r\n\r\nvoid onInit(Action action, Context<T> ctx) {\r\n    final int channelId = FlutterChannPlugin.listenEvent((dynamic event) {\r\n     // do something\r\n    });\r\n    //在dispose时自动执行regiestOnDisposed，反注册\r\n    ctx.regiestOnDisposed(() {\r\n      FlutterChannPlugin.cancelEventForSubscription(channelPluginSubId);\r\n    });\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"zjuwjf"}}