useFocusEffect

Without React.useCallback

When you go onto the page, it will focus, and thus run the effect, and run the subscribe.

When you leave the page, it will run cleanup and thus un-subscribe.

With React.useCallback

If we have a state that is in dependency array, and that state changes, then it will make the React.useCallback re-generate.