Skip to content
New issue

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

Replace setup from useEffect to constructor #502

Merged
merged 3 commits into from
Feb 12, 2022

Conversation

bannzai
Copy link
Owner

@bannzai bannzai commented Feb 12, 2022

Abstract

SettingPageのsetupメソッドをuseEffect越しではなく、storeが作られるタイミングで実行する

Why

なぜかstoreが作り直されてWidgetが残り続ける問題が発生してそう。その結果、Storeだけが作り直されてStateがクリアされて、Widgetのbuild時に何も存在してない画面が出てきてしまう

Links

Checked

  • Analyticsのログを入れたか
  • 境界値に対してのUnitTestを書いた
  • パターン分岐が発生するWidgetに対してWidgetTestを書いた
  • リリースノートを追加した

@bannzai bannzai marked this pull request as ready for review February 12, 2022 13:17
@bannzai bannzai merged commit 431a7c5 into main Feb 12, 2022
@bannzai bannzai deleted the fix/state_management/setting branch February 12, 2022 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant