6 Commits

Author SHA1 Message Date
xobotyi
baa2f7511e
feat(useRafLoop): reworked the hook, now it do not re-render parent component.
BREAKING CHANGE: changed return array, now it returns only functions in next order: [stop, start, isActive].

Parent component is not re-rendered on loop start/stop.
2020-04-01 10:43:31 +03:00
xobotyi
1ef1272d6d
feat(useRafLoop): implement #1090 2020-04-01 08:49:05 +03:00
Ayush Goyal
67d65833d9 chore: disable eslint for affected files 2020-02-04 07:12:19 +05:30
xobotyi
b586707ce5 Useless null type; 2019-08-03 02:21:58 +03:00
xobotyi
2299646c57 No sense to pass deps due to we can observe the callback itself. 2019-08-03 02:13:12 +03:00
xobotyi
6d55666aa7 useRafLoop - React hook that calls given function inside the RAF loop. 2019-07-30 23:14:08 +03:00