We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v6.19.0
React version: v18.2.0
The user will access the page with url like '..../place/claim?...'
and the page have following code:
useEffect(() => { const getProfile = async () => { // api call getting stuff navigate('/place', { replace: true }) } getProfile() }, [...])
However, the navigate never works here
tried following as well:
const [shouldNavigate, setShouldNavigate] = useState(false); useEffect(() => { const getProfile = async () => { // api call getting stuff setShouldNavigate(true); } getProfile() }, [...]) if (shouldNavigate) { return (<Navigate to='/place' replace={true} />) }
also doesn't redirect
url redirect to the /place
Nothing happens
The text was updated successfully, but these errors were encountered:
Same bug, how to fix it? @XHCui
Sorry, something went wrong.
@brophdawg11 Can you help me? This problem occurs in data router. I checked a lot of PR related to this, such as #8929, but this problem still exists.
No branches or pull requests
What version of React Router are you using?
v6.19.0
React version: v18.2.0
Steps to Reproduce
The user will access the page with url like '..../place/claim?...'
and the page have following code:
However, the navigate never works here
tried following as well:
also doesn't redirect
Expected Behavior
url redirect to the /place
Actual Behavior
Nothing happens
The text was updated successfully, but these errors were encountered: