Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Bug: useLayoutEffect não é acionado quando uma ação voltar é executada #41

Open
AndreLaranjeira opened this issue Mar 10, 2021 · 0 comments
Assignees
Labels
Must have Requirements labelled as Must have are critical to the current delivery timebox
Milestone

Comments

@AndreLaranjeira
Copy link
Collaborator

AndreLaranjeira commented Mar 10, 2021

Functioning solution:

const unsubscribe = props.navigation.addListener('didFocus', () => {
console.log('focussed');
});

useFocusEffect(
useCallback(() => {
setStatusBarBackgroundColor(styles.statusBarColor, true);
}, []),
);

Sources:

Observação: Não fazer isso em um componente, mas sim nas páginas. Tome cuidado em especial para páginas com condicionais (detalhes de animal).

Revisor: Hugo.

@AndreLaranjeira AndreLaranjeira added this to the Sprint 08 milestone May 8, 2021
@AndreLaranjeira AndreLaranjeira self-assigned this May 8, 2021
@AndreLaranjeira AndreLaranjeira added the Must have Requirements labelled as Must have are critical to the current delivery timebox label May 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Must have Requirements labelled as Must have are critical to the current delivery timebox
Projects
None yet
Development

No branches or pull requests

1 participant