Called when the hook is used (once if memoized, every render if not). Receives the current fiber, global context, and any runtime params passed to the hook.
Direct reference to the internal fiber (use with caution!)
The GlobalKayla instance (for logger, etc.)
Optional runtime parameters passed when calling the hook
The value that the hook will return
OptionalmemoizeThis Option is not going to work anymore.
Whether to memoize (cache) the result of onUse across component refreshes.
true (default): runs onUse only once per entity lifetime → most common & performantfalse: runs onUse on every render → useful for hooks that must recompute frequentlyRequired name for this custom hook — used in dev-mode logs/warnings to identify it.
Configuration for a custom Kayla hook created via
createUseHook.