Spread the joy of Fusion. pretty-fusion-utils
is an opinionated collection
of useful Fusion 0.3 utilities,
borrowed from Vide
and React hooks.
-
useCamera
-
useDebounceCallback
-
useDebounceEffect
(unlikely as Fusion has no concept of effects) -
useDebounceSource
(asuseDebounceValue
) -
useDeferEffect
(unlikely as Fusion has no concept of effects) -
useDeferSource
(asuseDeferValue
) -
useEventListener
-
useInterval
-
useLifetime
(unlikely, justuseTimer
starting at zero) -
useMotion
(unlikely, Fusion already has Tween and Spring objects) -
useMouse
-
usePrevious
(unlikely, Fusion has no concept of component lifecycles) -
usePx
-
useSpring
(unlikely, Fusion has Spring objects) -
useTagged
-
useThrottleCallback
-
useThrottleEffect
(unlikely as Fusion has no concept of effects) -
useThrottleSource
(asuseThrottleValue
) -
useTimer
-
useUpdateEffect
(unlikely as Fusion has no formal concept of components) -
useViewport
-
useCoroutine
-
useTasks
-
useThread
-
useAsync
(analogous to Fusion Eventuals) -
useEffect
(somewhat broken, seesrc/use-effect/init.luau
)
- Darklua setup & build system
- TypeScript support (waiting for
@rbxts/fusion@0.3
, may defer to using@znotfireman/fusion
) - Memoize utility for some utilities e.g.
usePx
really should be cached
pretty-fusion-utils
is avalible under MIT or Apache 2.0 terms.