Skip to content

Commit c16ee89

Browse files
committed
Updated triggerAsyncCallback
1 parent 156cded commit c16ee89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/shared/src/services/submitPrompt/utils/triggerAsyncCallback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {CallbackFunction} from '../../../types/callbackFunction';
33
const isHighPerfJsEngine = navigator?.userAgent?.includes('Safari');
44

55
// TODO: To be replaced with a pure React implementation for submitPrompt that relies on React rendering cycle
6-
const defaultAsyncDelay: 1 | 10 = isHighPerfJsEngine ? 10 : 1; // Efficient async scheduling for Safari
6+
const defaultAsyncDelay: 1 | 100 = isHighPerfJsEngine ? 100 : 1; // Efficient async scheduling for Safari
77

88
export const triggerAsyncCallback = (trigger: CallbackFunction, delay: number = defaultAsyncDelay) => {
99
setTimeout(() => {

pipeline/npm/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"inherit": true,
3-
"nlux": "2.16.0",
3+
"nlux": "2.16.1",
44
"peerDependencies": {
55
"react": "18",
66
"react-dom": "18"

0 commit comments

Comments
 (0)