Forest Logo
search
package_2

pretty-fusion-utils

By @znotfireman

Roblox

Mirrored

[image: Flower bouquet with Fusion accent colors][image: Flower bouquet with Fusion accent colors]

Licensed under Apache 2.0 OR MIT CI Workflow Status Documentation Workflow Status

An opinionated collection of modern Fusion 0.3 utilities. Sourced from pretty-vide-utils and pretty-react-hooks with specific Fusion utilities.

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 lib/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.

Package Details

Install command (Click to copy)


Version

0.1.0-dev.5

License

Apache-2.0

check_circle

Safe for commercial use

infoModified files must carry a notice of changes. If the package ships a NOTICE file, its attributions must be preserved.

infoThe package archive does not include its license text; the license is declared in its manifest metadata.

Automated license review — not legal advice.