mirkoRainer / RulesLawyer

Pathfinder 2E on mobile
GNU General Public License v3.0
5 stars 1 forks source link

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

Open github-actions[bot] opened 3 years ago

github-actions[bot] commented 3 years ago

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).