2026-10-12 16:32:48 +00:00
|
|
|
// Module ID: 9337
|
|
|
|
|
// Function ID: 9338
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: useConversationBackoffRef
|
2026-10-12 16:32:48 +00:00
|
|
|
// Dependencies: [19, 7316, 569, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: useConversationBackoffRef
|
|
|
|
|
|
2026-10-12 16:32:48 +00:00
|
|
|
// Module 9337 (useConversationBackoffRef)
|
2026-10-02 13:37:24 +00:00
|
|
|
import BackoffDefault from "Backoff" /* 569 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import react from "react" /* 19 */;
|
2026-10-12 16:32:48 +00:00
|
|
|
import ConversationConstants from "ConversationConstants" /* 7316 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
let c3;
|
|
|
|
|
let closure_4;
|
2026-09-18 19:45:33 +00:00
|
|
|
({ FETCH_BACKOFF_MAX_MS: c3, FETCH_BACKOFF_MIN_MS: closure_4 } = ConversationConstants);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/conversations/useConversationBackoffRef.tsx");
|
|
|
|
|
|
|
|
|
|
export const useConversationBackoffRef = function useConversationBackoffRef(items) {
|
|
|
|
|
if (items === undefined) {
|
|
|
|
|
items = [];
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const useRef = react.useRef;
|
|
|
|
|
const tmp = new BackoffDefault(React3, _false);
|
|
|
|
|
const ref = useRef(tmp);
|
|
|
|
|
const effect = react.useEffect(() => {
|
2026-09-18 19:45:33 +00:00
|
|
|
const current = ref.current;
|
|
|
|
|
return () => {
|
|
|
|
|
current.succeed();
|
|
|
|
|
};
|
|
|
|
|
}, items);
|
|
|
|
|
return ref;
|
|
|
|
|
};
|