Skip to content

Commit

Permalink
fix: call onload after setting isLoaded:
Browse files Browse the repository at this point in the history
  • Loading branch information
bgiori committed Aug 16, 2024
1 parent 9a94e7b commit ec7e2c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ internal class LoadStoreCache<V>(
}.toMap()
clear()
putAll(values)
onLoad?.invoke()
isLoaded = true
onLoad?.invoke()
}

fun store(values: MutableMap<String, V> = cache) {
Expand Down

0 comments on commit ec7e2c1

Please sign in to comment.