We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b79e3b + a1d6c81 commit 4017d22Copy full SHA for 4017d22
packages/components/src/__builtins__/loading.ts
@@ -5,13 +5,10 @@ export const loading = async (
5
processor: () => Promise<any>
6
) => {
7
let ins = null
8
- let loading = setTimeout(() => {
9
- ins = MessagePlugin.loading(title)
10
- }, 100)
+ ins = MessagePlugin.loading(title)
11
try {
12
return await processor()
13
} finally {
14
MessagePlugin.close(ins)
15
- clearTimeout(loading)
16
}
17
0 commit comments