Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Navigation listener with local state to update redux. #42

Open
github-actions bot opened this issue Feb 9, 2021 · 0 comments
Open

Use Navigation listener with local state to update redux. #42

github-actions bot opened this issue Feb 9, 2021 · 0 comments

Comments

@github-actions
Copy link

github-actions bot commented Feb 9, 2021

const navigation = useNavigation();
useEffect(() => {
navigation.addListener("beforeRemove", (event) => {
props.updateWeaponProficiencies(input);
});
}, [navigation]);

Self contain the component with state and update when focus is removed.


This issue has been automatically created by todo-actions based on a TODO comment found in src/scenes/CharacterSheet/Story/EditWeaponProficiencyView.tsx:24. It will automatically be closed when the TODO comment is removed from the default branch (master).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants