Javascript – Making it safe to call a hook from outside of the Redux Provider, when it access the Redux store?
I have a hook useGetFooId that attempts to get a Foo ID from the Redux store with fallback logic: If the Foo ID is set in the Redux store, it returns the ID from there (but it's expected that in…