Skip to content
RED SAG Skills
mediumStudy question · answer published in React Native interview questions, so no pointsreact-nativememory-leaks

Listener without effect cleanup

What is the problem with this React Native effect?

useEffect(() => {
  const sub = AppState.addEventListener('change', onChange)
}, [])
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions