Pinned Loading
-
-
Load on click
Load on click 1const App = () => {
2const [prefetchedIndexes, setPrefetchedIndexes] = useState();
34return (
5<>
-
Render with Suspense
Render with Suspense 1const IndexList = ({ prefetchedIndexes }) => {
2const data = usePrefetchedQuery(prefetchedIndexes);
34return data.majorIndexesList.map(index => (
5<div key={index.ticker}>
-
prefetch-query
prefetch-query 1function wrapPromise(promise) {
2let status = "pending";
3let result;
4let suspender = promise.then(
5r => {
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.