JesusFilm / core

JFP DS Engineering Monorepo
https://docs.core.jesusfilm.org/
18 stars 12 forks source link

feat: use navigation state #4449

Open GeronimoJohn opened 14 hours ago

GeronimoJohn commented 14 hours ago

Description

Issue

Some navigational elements can be clicked multiple times, leading to a poor user experience. Multiple clicks trigger excessive network requests, and navigation only occurs after the latest request is resolved.

Solution

Implemented a reusable hook to track if a page is currently navigating. While navigation is in progress, this hook can disable elements, preventing multiple clicks and ensuring a smoother user experience.

linear[bot] commented 14 hours ago

ENG-1531 create a navigation state hook

github-actions[bot] commented 14 hours ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch ✅ Ready watch preview Fri Nov 22 11:09:33 NZDT 2024
github-actions[bot] commented 14 hours ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys ✅ Ready journeys preview Fri Nov 22 11:09:49 NZDT 2024
github-actions[bot] commented 14 hours ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys-admin ✅ Ready journeys-admin preview Fri Nov 22 11:10:37 NZDT 2024