27 items
App States & OS Process Death Recovery
FlashcardObserver Setup in viewWillAppear
Code QuizLifecycle Callbacks vs Object Deallocation
QuizApp State Transitions & Process Death
Slides / VideoOS Lifecycle vs React Component Lifecycle
FlashcardOS Lifecycle vs React Lifecycle
Slides / VideoSaving State on App Lifecycle
Code QuizApp States and Transitions
QuizView Controller Lifecycle Cleanup
Code QuizBalancing View Controller Lifecycle Cleanup
QuizWrong Method for Background Work
Code QuizUnderstanding the Inactive App State
QuizApp States and Background Transitions
QuizState Restoration and Cold Starts
QuizBackground Task Ends Too Early
Code QuizState Restoration Key Mismatch Bug
Code QuizuseEffect Cleanup in Mobile Apps
Slides / VideouseEffect Cleanup on Mobile
FlashcardProcess Death and State Restoration
Slides / VideoCold vs Warm Start & State Restoration
FlashcardApp State Transitions
FlashcarduseFocusEffect Re-run Bug
Code QuizView Controller Focus & Cleanup
QuizApp State Transitions Explained
Slides / VideoUIViewController Lifecycle & Focus
FlashcardSaving State on Background
Code QuiziOS App States Basics
QuizuseFocusEffect Re-run Bug
Spot why this screen-focus effect fires on every render instead of only on focus.
import { useFocusEffect } from '@react-navigation/native';
function ProfileScreen() {
useFocusEffect(() => {
const sub = api.subscribeToUpdates();
console.log('screen focused');
return () => sub.unsubscribe();
});
return <ProfileView />;
}What is the bug in this useFocusEffect usage?