File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
core/auth/ui/compose/src/main/kotlin/com/edricchan/studybuddy/core/auth Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import androidx.compose.runtime.CompositionLocal
55import androidx.compose.runtime.CompositionLocalProvider
66import androidx.compose.runtime.ProvidableCompositionLocal
77import androidx.compose.runtime.compositionLocalOf
8+ import androidx.compose.runtime.compositionLocalWithComputedDefaultOf
89import androidx.compose.runtime.getValue
910import androidx.lifecycle.compose.collectAsStateWithLifecycle
1011import com.google.firebase.Firebase
@@ -18,7 +19,7 @@ val LocalCurrentUser: ProvidableCompositionLocal<FirebaseUser?> =
1819
1920/* * [CompositionLocal] of whether there's a currently signed-in [FirebaseUser]. */
2021val LocalIsSignedIn : ProvidableCompositionLocal <Boolean > =
21- compositionLocalOf { Firebase .auth.currentUser != null }
22+ compositionLocalWithComputedDefaultOf { LocalCurrentUser .currentValue != null }
2223
2324/* *
2425 * Provides the [LocalCurrentUser] and [LocalIsSignedIn] composition locals with the
You can’t perform that action at this time.
0 commit comments