Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
28 lines
880 B
TypeScript
28 lines
880 B
TypeScript
// Module ID: 7505
|
|
// Function ID: 7506
|
|
// Name: useConversationBackoffRef
|
|
// Dependencies: [19, 7202, 559, 2]
|
|
// Exports: useConversationBackoffRef
|
|
|
|
// Module 7505 (useConversationBackoffRef)
|
|
import BackoffDefault from "Backoff" /* 559 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const ConversationConstants = fn(7202);
|
|
({ FETCH_BACKOFF_MAX_MS: c3, FETCH_BACKOFF_MIN_MS: closure_4 } = ConversationConstants);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/conversations/useConversationBackoffRef.tsx");
|
|
|
|
export const useConversationBackoffRef = function useConversationBackoffRef(items) {
|
|
if (items === undefined) {
|
|
items = [];
|
|
}
|
|
const ref = noop.useRef(new BackoffDefault(React4, React3));
|
|
const effect = noop.useEffect(() => {
|
|
const current = ref.current;
|
|
return () => {
|
|
current.succeed();
|
|
};
|
|
}, items);
|
|
return ref;
|
|
};
|