Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
Upstatement
/
react-router-guards
Public
Notifications
You must be signed in to change notification settings
Fork
18
Star
131
Code
Issues
9
Pull requests
7
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
V2 Internals Rewrite
- #100
#100
Draft
joshpensky
wants to merge 12 commits into
develop
Upstatement/react-router-guards:develop
from
v2
Upstatement/react-router-guards:v2
Copy head branch name to clipboard
Conversation
Commits
12
(12)
Checks
Files changed
Draft
V2 Internals Rewrite
#100
joshpensky
wants to merge 12 commits into
develop
Upstatement/react-router-guards:develop
from
v2
Upstatement/react-router-guards:v2
Copy head branch name to clipboard
Commits
Commits on Sep 15, 2021
testing nested guards
joshpensky
committed
fa83922
View commit details
Copy full SHA for fa83922
Browse repository at this point
remove internal RouterContext usage, remove ContextWrapper component
joshpensky
committed
b52ca66
View commit details
Copy full SHA for b52ca66
Browse repository at this point
using status variable to track guard render state
joshpensky
committed
93fc4a3
View commit details
Copy full SHA for 93fc4a3
Browse repository at this point
move logic out of useEffect, remove unused hooks
joshpensky
committed
550d5af
View commit details
Copy full SHA for 550d5af
Browse repository at this point
Commits on Sep 16, 2021
moving prop types to components, adding comments, clarify resolveGuards signature
joshpensky
committed
26d7dc4
View commit details
Copy full SHA for 26d7dc4
Browse repository at this point
rename PageComponent -> Page, remove renderPage in favor of inlining
joshpensky
committed
8795293
View commit details
Copy full SHA for 8795293
Browse repository at this point
move hooks top-level
joshpensky
committed
3dab53f
View commit details
Copy full SHA for 3dab53f
Browse repository at this point
cleanup useRouteChangeEffect with comments, remove Guard name prop
joshpensky
committed
2ac45d2
View commit details
Copy full SHA for 2ac45d2
Browse repository at this point
inherit from route from parent, only use page override when not undefined
joshpensky
committed
ea902fd
View commit details
Copy full SHA for ea902fd
Browse repository at this point
remove use on internal __RouterContext in favor of useGuardData hook
joshpensky
committed
b83407e
View commit details
Copy full SHA for b83407e
Browse repository at this point
change GuardFunction signature, force next to be returned, simplify resolveGuards
joshpensky
committed
c9e2ffd
View commit details
Copy full SHA for c9e2ffd
Browse repository at this point
update basic usage example
joshpensky
committed
c13edc0
View commit details
Copy full SHA for c13edc0
Browse repository at this point
You can’t perform that action at this time.