Periodically trigger a callback when duration elapses
Callback can be changed during the lifecycle, which it refresh the timer
Make sure that it's memoized correctly
Calls a provided callback after widget mounts into widget tree.
Difference between useOnMount is that provided callback is wrapped inside addPostFrameCallback callback
Simple wrapper around useEffect hook. The only difference that inner callback is wrapped inside addPostFrameCallback.
Note that since we are wrapping our callback inside addPostFrameCallback, there is no cleanup function support.
Simple wrapper around useRef, but emitting value instead of ObjectRef.
Use this in case you want a singleton instance of some class or other data structur.
Automatically synchronizes changing value into useRef hook.
Usefull in case you want to save some derived data inside of useRef, keeping previous value, etc..