react-router-guards icon indicating copy to clipboard operation
react-router-guards copied to clipboard

Guard middleware for React Router navigation

Results 16 react-router-guards issues
Sort by recently updated
recently updated
newest added
trafficstars

# Summary I am using nested `GuardProvider` one for public URLs and another one is for dashboard pages. Whenever I do navigation inside dashboard routes the parent also gets refreshed...

bug

# Summary React Router v6 is out officially. When can we expect this package to be compatible with it?

# Description Failed to compile. ./node_modules/react-router-guards/dist/index.es.js Attempted import error: '__RouterContext' is not exported from 'react-router' (imported as 's'). ## Steps to reproduce Clear steps describing how to reproduce the issue....

# Description I am running into an issue with a guard that redirects to the same path. What I'd like to do in the guard is to check if the...

# Description Update codesanbox url ## Related issues Fixes #102

# Summary Update codesanbox example ## Basic example I fixed example: https://codesandbox.io/s/react-router-guards-basic-demo-forked-83dkh ## Motivation To have a working example

# Description The current way we are tracking route changes is through a changing location pathname; unfortunately, this location change is true for both parent and child nested routes, causing...

bug
work in progress

# Description This introduces a rewrite of the `react-router-guards` internals, with some public-facing API changes This builds on top of #84, #85, #98, and #99 to make the following changes:...

work in progress

# Description Previously, we only ever surfaced the error message. As pointed out by #44, we should return the full object instead of just the message! That way the user...

enhancement

# Description The parent route will rerender (destroy and initialize) each time the user navigates between child routes. This can cause issues when fetching data inside a container/parent component or...

needs review