Skip to content

Feature implementation from commits 7ce106a..390abb1 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 25 commits into
base: feature-base-branch-2
Choose a base branch
from

Conversation

codeOwlAI
Copy link
Owner

@codeOwlAI codeOwlAI commented Jun 29, 2025

PR Summary

Add useLocationBlocker Hook to Prevent Duplicate Navigation History

Overview

Implements a custom hook to prevent React Router from adding duplicate entries to the navigation history when users navigate to the same page they're currently on.

Change Types

Type Description
Enhancement Added hook to optimize navigation history management
Feature Created new useLocationBlocker custom hook

Affected Modules

Module / File Change Description
logged_in/components/Routing.js Added hook import and implementation
logged_out/components/Routing.js Added hook import and implementation
shared/functions/useLocationBlocker.js Created new custom hook to prevent duplicate history entries

Notes for Reviewers

  • The hook prevents React Router from adding duplicate entries when navigating to the same page
  • Implementation is consistent across both logged-in and logged-out routing components

dependabot-preview bot and others added 25 commits April 28, 2021 22:13
…file

Upgrade to GitHub-native Dependabot
…ate-fns-2.21.2

Bump date-fns from 2.21.1 to 2.21.2
…ate-fns-2.21.3

Bump date-fns from 2.21.2 to 2.21.3
…esting-library/user-event-13.1.9

Bump @testing-library/user-event from 13.1.8 to 13.1.9
…esting-library/react-11.2.7

Bump @testing-library/react from 11.2.6 to 11.2.7
…tripe/react-stripe-js-1.4.1

Bump @stripe/react-stripe-js from 1.4.0 to 1.4.1
Bumps [@stripe/stripe-js](https://github.com/stripe/stripe-js) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/stripe/stripe-js/releases)
- [Commits](stripe/stripe-js@v1.14.0...v1.15.0)

Signed-off-by: dependabot[bot] <support@github.com>
…tripe/stripe-js-1.15.0

Bump @stripe/stripe-js from 1.14.0 to 1.15.0
…ate-fns-2.22.1

Bump date-fns from 2.21.3 to 2.22.1
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.12.0 to 5.13.0.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](testing-library/jest-dom@v5.12.0...v5.13.0)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…esting-library/jest-dom-5.13.0

Bump @testing-library/jest-dom from 5.12.0 to 5.13.0
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.13.0 to 5.14.1.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](testing-library/jest-dom@v5.13.0...v5.14.1)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…esting-library/jest-dom-5.14.1

Bump @testing-library/jest-dom from 5.13.0 to 5.14.1
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 11.2.7 to 12.0.0.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](testing-library/react-testing-library@v11.2.7...v12.0.0)

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants