android / android/codelab-android-compose

[TestingCodelab] (Optional Exercise): How to access state in RallyApp

オープン
#238 コメント 7 件 リアクション 0 件 担当者 1 名 @JoseAlcerreca が担当を希望しています GitHub で見る
主要言語
Kotlin
スター
1.7k
フォーク
799
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi, in the hints for Step 7, it says
> The scope of the test needs to include the state, which is owned by `RallyApp`.

I looked at the implementation of `RallyApp`, and I can see that the state is stored _inside_ the component, so I don't know how I can access it to assert on its value.

Am I supposed to modify the `RallyApp` component to move the state elsewhere, and if so, where? In a ViewModel?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。