github.com/jaredpalmer/fo…
React-redux seems to use something a bit similar here: github.com/reduxjs/react-…
Thanks
For example in react-navigation, an user reported this code not working as expected (executes too much), because "navigate" function is not stable

