Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: synchronously re-render bug of useRaf hook (#77)
* Another animation frame will be requested before the cleanup function for `useEffect` is executed. * Use `useLayoutEffect` to replace `useEffect`, in order to guarantee `cancelAnimationFrame` can work well. More details can be found in issue #76
- Loading branch information