You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.1.2
- IMPROVED: perfromance
- FIXED: in some cases, the context would get reverted when it shouldn’t.
- FIXED: dependencies switched to peer dependencies
2.1.1
- FIXED: if revertOnUpdate isn’t set to true, the cleanup function may not be invoked when the component is unmounted. See #6
- FIXED: bad link on Readme. See #7
- IMPROVED: slight performance improvement, switching from useState to useRef, thus fewer renders.
2.1.0
- IMPROVED: you can gsap.registerPlugin(useGSAP) in order to ensure that the same GSAP is being used in the hook as is being used as elsewhere (only helpful in environments that may load the hook with its dependencies in a totally separate fashion, like some online editors)
- FIXED: made GSAP and React dependencies instead of devDependencies or peerDependencies in package.json
- FIXED: minor TypeScript definition problems
2.0.1
- IMPROVED: added a /dist/ directory with a UMD version for greater compatibility
- IMPROVED: Readme edits
- FIXED: if the hook had dependencies and was invoked before its component mounted (React renders bottom-up), cleanup didn’t take place.
2.0.0
- Updated method signature to accommodate config objects for much greater flexibility and a cleaner API. (could be breaking change in some cases from version 1.x)
- By default, if you define dependencies, the GSAP-related objects will only revert when the entire component re-renders but you can define revertOnUpdate: true in the config object if you’d like it to update every time one of the dependencies changes.
- Many improvements to the readme