Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in example of functional component
I found out that when _handleAppStateChange is triggered, appState is still "active". Therefore, ```appState.match(/inactive|background/)``` always return null. I believe this because _handleAppStateChange passed to useEffect was not updated. I propose a fix that is to add _handleAppStateChange to dependencies list of useEffect.
- Loading branch information