79772816

Date: 2025-09-23 15:48:37
Score: 2
Natty:
Report link

I think the problem you are experiencing looks something like this:

<Button onPress(() => router.push("/some-page") />

Where pressing on the button multiple times in quick succession leads to a navigation stack looking like:

["some-page", "some-page", "some-page"]

Ideally, you press the button several times and only navigate to some-page once.

I've found that using the Expo Router component <Link> solves this problem though I can't point to documentation that proves this. Expo must handle the multiple navigation problem within their Link component.

To me this makes sense - why would they make a navigation library without solving this problem in some form?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: cdip