Changed the usage of the props in the lenis component to ensure it reacts to props changes.
Also added code to ensure the raf is canceled in the same time the component is destroyed.
Added a second page to trigger the onDestroy hook and a child component to fiddle with the page height and trigger the onUpdate hook.
(the second commit can be removed)
Changed the usage of the props in the lenis component to ensure it reacts to props changes. Also added code to ensure the raf is canceled in the same time the component is destroyed. Added a second page to trigger the onDestroy hook and a child component to fiddle with the page height and trigger the onUpdate hook. (the second commit can be removed)