callstack / callstack/react-native-paper

Menu + Navigation is not clearing the PortalManager

Ouverte
#4,319 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Portal question
Langage dominant
TypeScript
Étoiles
14.5k
Forks
2.2k
Merge moyen
5 j 23 h
PR mergées (30 j)
12

Description

I am running into an issue that if a navigate on a menu item press, the PortalManager is not getting cleared out and then capturing subsequent screen interactions. I am doing some pretty simple navigation using the following code:

```jsx
const closeMenu = () => {
console.log('closeMenu');
setVisible(false);
};

const navigateToStaticWebView = (itemKey: string) => {
navigation.push('StaticWeb', {
...webViews[itemKey as keyof typeof webViews],
});
};
```

And here is the menu item that is calling it:
```jsx
{
closeMenu();
navigateToStaticWebView('about');
}}
/>
```

I figure that I am just doing something dumb or missing something simple, but this has been throwing me for a loop for a few days. Any help or documentation would be greatly appreciated, thanks.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by reproducing the provided Menu.Item flow: call closeMenu, then navigateToStaticWebView with navigation.push, and observe whether PortalManager still captures screen interactions. Trace the Menu and PortalManager behavior during navigation; done means navigating from the menu clears PortalManager so subsequent screen interactions reach the destination screen.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
react-native, typescript
Domaine
frontend, mobile
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.