How to use
;;
When the state
is change. the callback
will not re-memoize.
You can use this utility. when you need to use a state in a callback but you also need the state does not affect to the callback memoization.
This is very simple code. you can use too by just copy the code below.
;