- 
                Notifications
    
You must be signed in to change notification settings  - Fork 98
 
Open
Description
I've been noticing race conditions with the react-router-6 adapter that don't seem to occur when just using the window adapter.
Specifically this seems to happen in situations where a navigate occurs below a component that is setting a query param.
const someComponent = () => {
    const [useQueryParam, setUseQueryParam] = useQueryParam(false);
    useEffect(() => {
        setUseQueryParam(true,"replaceIn");
    }
    return (
        <Navigate to= "/someRoute" replace  />
    )
}This results in the url just having the query param, and not navigating to /someRoute. It works fine if you don't use replace. I have experimental batching turned on.
Metadata
Metadata
Assignees
Labels
No labels