Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: refactor code

Hieu Vu50418c7fc9ad
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx
index 0552530f8d9..420a937f375 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx
@@ -1211,12 +1211,12 @@ class DeepLinkHandlerActivity : ComponentActivity() {
val navController = rememberNavController()
val emailState = remember { mutableStateOf("") }
val createdAtState = remember { mutableStateOf("") }
- LaunchedEffect(key1 = emailState, block = {
+ LaunchedEffect(Unit) {
callback = { email, created ->
emailState.value = email
createdAtState.value = created
}
- })
+ }
ManageProductsTheme {
Surface(
modifier = Modifier.fillMaxSize(),
diff --git a/examples/product-sample-supabase-kt/app/src/main/java/com/example/manageproducts/DeepLinkHandlerActivity.kt b/examples/product-sample-supabase-kt/app/src/main/java/com/example/manageproducts/DeepLinkHandlerActivity.kt
index a663d4b6ce2..a82112c252b 100644
--- a/examples/product-sample-supabase-kt/app/src/main/java/com/example/manageproducts/DeepLinkHandlerActivity.kt
+++ b/examples/product-sample-supabase-kt/app/src/main/java/com/example/manageproducts/DeepLinkHandlerActivity.kt
@@ -42,12 +42,12 @@ class DeepLinkHandlerActivity : ComponentActivity() {
val navController = rememberNavController()
val emailState = remember { mutableStateOf("") }
val createdAtState = remember { mutableStateOf("") }
- LaunchedEffect(key1 = emailState, block = {
+ LaunchedEffect(Unit) {
callback = { email, created ->
emailState.value = email
createdAtState.value = created
}
- })
+ }
ManageProductsTheme {
Surface(
modifier = Modifier.fillMaxSize(),