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
xobotyi
8f3665b071
Fix docs;
2019-08-03 02:19:28 +03:00
xobotyi
322b45f36c
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# docs/useRafLoop.md
2019-08-03 02:15:27 +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
Vadim Dalecky
8e13ddce36
docs: format useRafLoop.md
2019-08-03 01:08:15 +02:00
xobotyi
6d55666aa7
useRafLoop - React hook that calls given function inside the RAF loop.
2019-07-30 23:14:08 +03:00