await/void promise
This commit is contained in:
@@ -227,11 +227,6 @@
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"src/components/EmojiPicker/preload.web.ts": {
|
||||
"@typescript-eslint/no-floating-promises": {
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"src/components/FeedCard.tsx": {
|
||||
"@typescript-eslint/no-explicit-any": {
|
||||
"count": 1
|
||||
|
||||
@@ -24,9 +24,9 @@ export function useWebPreloadEmoji({immediate}: {immediate?: boolean} = {}) {
|
||||
import(/* webpackChunkName: "emoji-mart" */ 'emoji-mart'),
|
||||
import(/* webpackChunkName: "emoji-mart-data" */ '@emoji-mart/data'),
|
||||
])
|
||||
init({data})
|
||||
await init({data})
|
||||
} catch (e) {}
|
||||
}, [])
|
||||
if (immediate) preload()
|
||||
if (immediate) void preload()
|
||||
return preload
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user