void_signals_hooks 1.0.0
void_signals_hooks: ^1.0.0 copied to clipboard
Flutter hooks integration for void_signals - reactive state management
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 - 2024-11-28 #
Added #
- Initial stable release of void_signals_hooks
- Core hooks:
useSignal()- Create and memoize a signaluseComputed()- Create memoized computed valuesuseComputedSimple()- Simplified computed without previous valueuseWatch()- Watch signal and trigger rebuildsuseWatchComputed()- Watch computed valuesuseReactive()- Create signal and watch in one calluseSignalEffect()- Side effects with dependency trackinguseEffectScope()- Group effects for cleanup
- Selection hooks:
useSelect()- Select part of signal valueuseSelectComputed()- Select from computed values
- Utility hooks:
useBatch()- Batch signal updatesuseUntrack()- Read without dependenciesuseSignalFromStream()- Create signal from streamuseSignalFromFuture()- Create signal from future
- Time-based hooks:
useDebounced()- Debounced signaluseThrottled()- Throttled signal
- Combinator hooks:
useCombine2()/useCombine3()- Combine signalsusePrevious()- Track current and previous values
- Collection hooks:
useSignalList()- Reactive listuseSignalMap()- Reactive mapuseSignalSet()- Reactive set
Features #
- Automatic cleanup when widget unmounts
- Memoization across rebuilds
- Full integration with flutter_hooks