Skip to content

Commit c2a9c87

Browse files
committed
Remove delay parameter, not used
1 parent 6d890d9 commit c2a9c87

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/06-suspense-like/src/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { styles } from "./styles";
99

1010

1111
const Suspense: React.FC<{ tag: string, className?: string }> = ({ tag, className, children }) => {
12-
const { promiseInProgress } = usePromiseTracker({ area: tag, delay: 0 });
12+
const { promiseInProgress } = usePromiseTracker({ area: tag });
1313
return promiseInProgress ? <CircularProgress className={className} size={60}/> : <>{children}</>;
1414
};
1515

examples/07-suspense-custom/src/app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { styles } from "./styles";
88
import { randomBytes } from "crypto";
99

1010
const Suspense: React.FC<{tag: string, Progress?: React.ReactNode}> = ({ tag, Progress, children }) => {
11-
const { promiseInProgress } = usePromiseTracker({ area: tag, delay: 0 });
11+
const { promiseInProgress } = usePromiseTracker({ area: tag });
1212
return <>{promiseInProgress ? Progress : children}</>;
1313
};
1414

@@ -49,4 +49,4 @@ const AppInner: React.FC<WithStyles<typeof styles>> = ({classes}) => {
4949
</div>
5050
);
5151
};
52-
export const App = withStyles(styles)(AppInner);
52+
export const App = withStyles(styles)(AppInner);

0 commit comments

Comments
 (0)