Skip to content

znotfireman/pretty-fusion-utils

Repository files navigation

Flower

pretty fusion utils

Spread the joy of Fusion. pretty-fusion-utils is an opinionated collection of useful Fusion 0.3 utilities, borrowed from Vide and React hooks.

Prerelease

Existing

  • useCamera
  • useDebounceCallback
  • useDebounceEffect (unlikely as Fusion has no concept of effects)
  • useDebounceSource (as useDebounceValue)
  • useDeferEffect (unlikely as Fusion has no concept of effects)
  • useDeferSource (as useDeferValue)
  • useEventListener
  • useInterval
  • useLifetime (unlikely, just useTimer 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 (as useThrottleValue)
  • useTimer
  • useUpdateEffect (unlikely as Fusion has no formal concept of components)
  • useViewport

Fusion

  • useCoroutine
  • useTasks
  • useThread
  • useAsync (analogous to Fusion Eventuals)
  • useEffect (somewhat broken, see src/use-effect/init.luau)

Misc

  • 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

License

pretty-fusion-utils is avalible under MIT or Apache 2.0 terms.