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
PushableListViewに広告が表示されるようになったが広告は Account.of(context) を呼んでいるためAccountScopeで囲まれていない場合 Exception: has not ancestor を発生させるようになった
Account.of(context)
Exception: has not ancestor
FolderSelectDialogではPushableListViewがAccountScopeに囲まれていないため設定のインポートとエクスポートができなくなっている
The text was updated successfully, but these errors were encountered:
他にもAccountScopeに囲まれていないPushableListViewが存在するかもしれませんが確認していません
同様の問題は以前にもありましたし (#129, #130)、今後も発生することが予想されます この原因はInheritedWidgetを使ったデータの受け渡しではどのウィジェットが囲まれていてどれがそうでないかわかりにくいことにあります やみくもにテストケースを増やすのもいいですが、AccountScopeを用いたデータの受け渡しを MisskeyNote の中など限られた場所に限定して基本的に引数による受け渡しを使うようにするべきだと思います
Sorry, something went wrong.
ネストが深くなるところまで引数のリレーをしたくない、アカウント情報はいろんなところでキーになっていて必要、同じ画面でも複数のアカウント情報が必要になることがあってその文脈がProviderで解決できないの3つからInheritedWidgetにしたと思う
それはわかるけれどInheritedWidgetの恩恵が少ないところでも使っているのをやめるべきだと思う
No branches or pull requests
PushableListViewに広告が表示されるようになったが広告は
Account.of(context)
を呼んでいるためAccountScopeで囲まれていない場合Exception: has not ancestor
を発生させるようになったFolderSelectDialogではPushableListViewがAccountScopeに囲まれていないため設定のインポートとエクスポートができなくなっている
The text was updated successfully, but these errors were encountered: