consider the following code :
const onSubmit = (data) => { dispatch(Actions.updatedUser(data)) navigation.navigate(\'xxxx\') }
Whe