Releases: preactjs/prefresh
Releases · preactjs/prefresh
Initial release of @prefresh/utils
@prefresh/utils@0.1.0 cleanup (#26)
Custom hooks!
- Added
computeKeyandregisterto the window payloadcomputeKeywill calculate a hash forfunctional componentsandcustom hooksthis will allow you to derive the need for resetting state or not.registeris a noop that might be used later
- Added a third parameter to
replaceComponentallowing the user to specify whether or not the stat has to be reset.