0.1.1 #3

Merged
Thilawyn merged 24 commits from next into master 2025-01-22 03:42:22 +01:00
Showing only changes of commit 3004235690 - Show all commits

View File

@@ -373,8 +373,8 @@ export class Reffuse<R> {
)), [ref]) )), [ref])
const setValue = React.useCallback((setStateAction: React.SetStateAction<A>) => const setValue = React.useCallback((setStateAction: React.SetStateAction<A>) =>
runSync(Ref.update(ref, previousState => runSync(Ref.update(ref, prevState =>
SetStateAction.value(setStateAction, previousState) SetStateAction.value(setStateAction, prevState)
)), )),
[ref]) [ref])