We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c58c4b commit 8365d57Copy full SHA for 8365d57
src/jsMain/kotlin/App.kt
@@ -9,7 +9,7 @@ private val scope = MainScope()
9
val App = functionalComponent<RProps> { _ ->
10
val (shoppingList, setShoppingList) = useState(emptyList<ShoppingListItem>())
11
12
- useEffect(dependencies = listOf()) {
+ useEffect {
13
scope.launch {
14
setShoppingList(getShoppingList())
15
}
0 commit comments