Skip to content

Releases: preactjs/prefresh

Initial release of @prefresh/utils

13 May 13:37
343d225

Choose a tag to compare

@prefresh/utils@0.1.0

cleanup (#26)

Custom hooks!

13 May 13:39

Choose a tag to compare

  • Added computeKey and register to the window payload
    • computeKey will calculate a hash for functional components and custom hooks this will allow you to derive the need for resetting state or not.
    • register is a noop that might be used later
  • Added a third parameter to replaceComponent allowing the user to specify whether or not the stat has to be reset.