Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Commit dc8b002

Browse files
Use new useEffect signature
1 parent dc43cbd commit dc8b002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Full Stack Web App with Kotlin Multiplatform/05_Building_the_Frontend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private val scope = MainScope()
8989
val App = functionalComponent<RProps> { _ ->
9090
val (shoppingList, setShoppingList) = useState(emptyList<ShoppingListItem>())
9191

92-
useEffect(dependencies = listOf()) {
92+
useEffect {
9393
scope.launch {
9494
setShoppingList(getShoppingList())
9595
}

0 commit comments

Comments
 (0)