Open ryanflorence opened 6 months ago
Very cool! I guess you can do this as well.
const [isPending, startTransition] = useTransition()
startTransition(async () => {
const [more, stuff] = await Promise.all([fetcher.submit({ stuff }, { method: "post" }), doSomething()]);
});
In order for React Router transitions to compose with React 19 transitions we need to expose the promises from all of our transition functions:
This way developers can call into React Router from inside a React transition
Will add in 7.1