decord/source/modules/conversations/useConversationBackoffRef.tsx
2026-08-25 06:04:03 +00:00

27 lines
844 B
TypeScript

// Module ID: 8710
// Function ID: 8711
// Name: useConversationBackoffRef
// Dependencies: [19, 7204, 584, 2]
// Exports: useConversationBackoffRef
// Module 8710 (useConversationBackoffRef)
import closure_2 from "noop" /* 19 */;
import CONVERSATION_COLORS from "CONVERSATION_COLORS" /* 7204 */;
({ FETCH_BACKOFF_MAX_MS: c3, FETCH_BACKOFF_MIN_MS: c4 } = CONVERSATION_COLORS);
const result = require("set").fileFinishedImporting("modules/conversations/useConversationBackoffRef.tsx");
export const useConversationBackoffRef = function useConversationBackoffRef(items) {
if (items === undefined) {
items = [];
}
let ref;
ref = React.useRef(new ref(584)(closure_4, closure_3));
const effect = React.useEffect(() => {
current = current.current;
return () => {
current.succeed();
};
}, items);
return ref;
};