We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在Fragment導航至別頁回退回此頁後會重新,創建視圖。
onCreateView() onViewCreated()
在這兩個生命週期中註冊。 會導致回退時重複註冊監聽。
進而重複觸發狀態更新,事件導航(導致閃退)
可否推薦一個作法 移至onCreate監聽、或在onDestroyView 註銷監聽、或有更合適的作法?
另外我是新手使用妳的Flow擴展類,若推薦註銷監聽可否提供基於封裝後的實踐方法?
感謝
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在Fragment導航至別頁回退回此頁後會重新,創建視圖。
onCreateView()
onViewCreated()
在這兩個生命週期中註冊。
會導致回退時重複註冊監聽。
進而重複觸發狀態更新,事件導航(導致閃退)
可否推薦一個作法
移至onCreate監聽、或在onDestroyView 註銷監聽、或有更合適的作法?
另外我是新手使用妳的Flow擴展類,若推薦註銷監聽可否提供基於封裝後的實踐方法?
感謝
The text was updated successfully, but these errors were encountered: