-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed
Labels
Description
In order for React Router transitions to compose with React 19 transitions we need to expose the promises from all of our transition functions:
navigate()
submit()
fetcher.submit()
fetcher.load()
revalidator.revalidate()
This way developers can call into React Router from inside a React transition
let [isPending, startTransition] = useTransition()
startTransition(async () => {
let stuff = await doSomething()
let more = await fetcher.submit({ stuff }, { method: "post" })
});
Will add in 7.1
sergiodxa, remorses, gustavopch, machour, HananoshikaYomaru and 30 moregustavopch, bluefire2121, marcomuser, ggogobera, frontsideair and 10 moreDanones and akamfoad
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Stage 5 - Stable