react-suspend-in-parallel
v0.0.2
Published
Utility to run multiple Suspense requests in parallel
Downloads
2
Readme
react-suspend-in-parallel
Utility to run multiple Suspense requests in parallel.
import suspendInParallel from "react-suspend-in-parallel";
function ComponentThatSuspends(props) {
const [thingOne, thingTwo] = suspendInParallel(
() => fetchThingOne(props.id),
() => fetchThingTwo(props.id),
// ...
);
// Render...
}