Skip to content

Commit 8365d57

Browse files
Update useEffect to use new, consistent API
1 parent 4c58c4b commit 8365d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsMain/kotlin/App.kt

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

12-
useEffect(dependencies = listOf()) {
12+
useEffect {
1313
scope.launch {
1414
setShoppingList(getShoppingList())
1515
}

0 commit comments

Comments
 (0)