constApp=()=>{const{focusCount,isFocused}=useFocus();useEffect(()=>{if(focusCount===1&&isFocused){// this is the first time focus => init screen here}});useEffect(()=>{if(focusCount>1&&isFocused){// trigger when you navigate back from another screen// you can background reload data here ...}});}
Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.
Top comments (0)