Working lazyref extension
Some checks failed
Lint / lint (push) Failing after 12s

This commit is contained in:
Julien Valverdé
2025-02-25 12:17:45 +01:00
parent d9a01dae0f
commit 8754020323
8 changed files with 103 additions and 25 deletions

View File

@@ -1,10 +1,10 @@
import * as LazyRef from "@typed/lazy-ref"
import { Effect, Stream } from "effect"
import * as React from "react"
import { ReffuseExtension, ReffuseHelpers, SetStateAction } from "reffuse"
import { ReffuseExtension, type ReffuseHelpers, SetStateAction } from "reffuse"
export const withLazyRef = ReffuseExtension.make(() => ({
export const LazyRefExtension = ReffuseExtension.make(() => ({
useLazyRefState<A, E, R>(
this: ReffuseHelpers.ReffuseHelpers<R>,
ref: LazyRef.LazyRef<A, E, R>,