bfabdba: setTimeout for restart reaction
This commit is contained in:
parent
b7f0a3e6cf
commit
2097b28870
@ -72,9 +72,7 @@ export function common({ store, trpcClient }: ProcessContext) {
|
||||
$calculation.element('selectQuote').resetValue();
|
||||
})
|
||||
.finally(() => {
|
||||
setTimeout(() => {
|
||||
$process.delete('LoadKP');
|
||||
}, 100);
|
||||
$process.delete('LoadKP');
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
@ -27,11 +27,13 @@ export function disposableReaction<T, FireImmediately extends boolean = false>(
|
||||
if (disposer !== undefined) disposer();
|
||||
cleanDisposer();
|
||||
} else {
|
||||
disposer = reaction(
|
||||
expression,
|
||||
effect,
|
||||
reactionOpts ? omit(reactionOpts, ['fireImmediately']) : undefined
|
||||
);
|
||||
setTimeout(() => {
|
||||
disposer = reaction(
|
||||
expression,
|
||||
effect,
|
||||
reactionOpts ? omit(reactionOpts, ['fireImmediately']) : undefined
|
||||
);
|
||||
}, 100);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user