get -> value
All checks were successful
Lint / lint (push) Successful in 10s

This commit is contained in:
Julien Valverdé
2025-01-17 22:27:24 +01:00
parent a2e6a6d7ff
commit 6448061c8d
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -2,7 +2,7 @@ import { Function } from "effect"
import type React from "react"
export const get: {
export const value: {
<S>(prevState: S): (setStateAction: React.SetStateAction<S>) => S
<S>(setStateAction: React.SetStateAction<S>, prevState: S): S
} = Function.dual(2, <S>(self: React.SetStateAction<S>, prevState: S): S =>