Skip to content

Commit fd7df1e

Browse files
SebastianAignerJSMonk
authored andcommitted
Update useEffect to use new, consistent API
1 parent 8b957aa commit fd7df1e

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)