Custom hooks!
- Added
computeKey
andregister
to the window payloadcomputeKey
will calculate a hash forfunctional components
andcustom 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.