mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-11 17:30:22 +00:00
"Speed up" loading
This commit is contained in:
parent
2716fa6d21
commit
fea00bf37e
1 changed files with 2 additions and 2 deletions
|
|
@ -19,8 +19,8 @@ export function Discover() {
|
|||
const simulateLoading = async () => {
|
||||
// Simulate a loading time with setTimeout or fetch data here
|
||||
await new Promise((resolve) => {
|
||||
setTimeout(resolve, 2000);
|
||||
}); // Simulate 2s loading time
|
||||
setTimeout(resolve, 1000);
|
||||
}); // Simulate 1s loading time
|
||||
setLoading(false); // After loading, set loading to false
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue