Refactor Animator animate hooks to event functions
romelperez opened this issue · comments
The Animator
animate hooks are dynamically created React prop objects methods which are not recognized by React as hooks but normal functions. The original idea was to add hooks on animator flow transitions but since feature is not supported, they can be simple event functions on flow transitions.
- Rename
Animator
animate hooks to event functions fromuseAnimate[FLOW]
toonAnimate[FLOW]
. For example:useAnimateEntering
toonAnimateEntering
. This would include all test cases. - Refactor all core components animator animate hooks definitions.
- Refactor all animation sandboxes using the animate hooks.
- Refactor all animate hooks from the website documentation examples and the website animation "animate hooks" section.