-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed
Labels
Description
What version of React Router are you using?
6.4.3
Steps to Reproduce
<Route
path="/"
element={
<div>
<ScrollRestoration />
<Outlet />
</div>
}
>
<Route
path="post_route"
action={async ({ params }) => {
await patchServer()
return redirect(`redirect_route`)
}}
/>
</Route>
The action is called with a <Form method="patch"/>
Expected Behavior
The action is called and redirect to the url redirect_route, but without scrolling to the top... I expected the page to scroll to the top when calling the action (and returning the redirect)
Actual Behavior
The action is called and the page redirects to the new route, but without scrolling to the top (it stays at the same place)
zachallia, EliteSpartan, jrakotoharisoa and albt-revolucao