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