mirror of
https://github.com/2234839/web-font.git
synced 2025-05-08 19:45:29 +08:00
typo
This commit is contained in:
parent
c6567b8948
commit
6b49d15eae
@ -49,9 +49,11 @@ function useThrottledMemo<T>(fn: () => T, delay: number): Accessor<T> {
|
||||
createMemo(() => {
|
||||
const value = fn();
|
||||
if (timeoutId === null) {
|
||||
// @ts-expect-error
|
||||
setThrottledValue(value);
|
||||
timeoutId = setTimeout(() => {
|
||||
timeoutId = null;
|
||||
// @ts-expect-error
|
||||
setThrottledValue(fn());
|
||||
}, delay);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user