decord/source/modules/conversations/useConversationBackoffRef.tsx

32 lines
902 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 9201
// Function ID: 72125
2026-07-20 16:05:17 +00:00
// Name: useConversationBackoffRef
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 5832, 561, 2]
2026-07-20 16:05:17 +00:00
// Exports: useConversationBackoffRef
2026-07-25 08:10:48 +00:00
// Module 9201 (useConversationBackoffRef)
2026-07-23 10:11:24 +00:00
import result from "result";
import CONVERSATION_COLORS from "CONVERSATION_COLORS";
let closure_3;
let closure_4;
({ FETCH_BACKOFF_MAX_MS: closure_3, FETCH_BACKOFF_MIN_MS: closure_4 } = CONVERSATION_COLORS);
const result = require("Backoff").fileFinishedImporting("modules/conversations/useConversationBackoffRef.tsx");
2026-07-20 16:05:17 +00:00
export const useConversationBackoffRef = function useConversationBackoffRef(items) {
if (items === undefined) {
items = [];
}
2026-07-23 10:11:24 +00:00
let ref;
let tmp = ref(561);
2026-07-20 16:05:17 +00:00
tmp = new tmp(closure_4, closure_3);
2026-07-23 10:11:24 +00:00
ref = React.useRef(tmp);
const effect = React.useEffect(() => {
current = current.current;
return () => {
current.succeed();
};
2026-07-20 16:05:17 +00:00
}, items);
return ref;
};