useSubscribe
Lint / lint (push) Successful in 48s

This commit is contained in:
Julien Valverdé
2025-08-21 03:50:06 +02:00
parent 925a3d1264
commit 5c2d56ed91
4 changed files with 34 additions and 30 deletions
@@ -5,7 +5,7 @@ import { useCallbackSync } from "../useCallbackSync.js"
import { useFork } from "../useFork.js"
import { useOnce } from "../useOnce.js"
import { useRefState } from "../useRefState.js"
import { useSubscribeRefs } from "../useSubscribeRefs.js"
import { useSubscribe } from "../useSubscribe.js"
export namespace useOptionalInput {
@@ -101,7 +101,7 @@ export const useOptionalInput: {
[options.schema, options.ref, internalRef, enabledRef],
)
const [enabled] = yield* useSubscribeRefs(enabledRef)
const [enabled] = yield* useSubscribe(enabledRef)
const [value, setValue] = yield* useRefState(internalRef)
return { value, setValue, enabled, setEnabled, error }
})