2026-08-12 06:57:52 +00:00
|
|
|
// Module ID: 4697
|
|
|
|
|
// Function ID: 4698
|
2026-07-23 10:11:24 +00:00
|
|
|
// Name: usePrevious
|
2026-07-29 08:29:29 +00:00
|
|
|
// Dependencies: [19]
|
2026-07-23 10:11:24 +00:00
|
|
|
// Exports: usePrevious
|
|
|
|
|
|
2026-08-12 06:57:52 +00:00
|
|
|
// Module 4697 (usePrevious)
|
2026-07-29 08:29:29 +00:00
|
|
|
import noop from "noop";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
let c0;
|
|
|
|
|
let closure_1;
|
|
|
|
|
({ useEffect: c0, useRef: closure_1 } = noop);
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
export const usePrevious = function usePrevious(arg0) {
|
|
|
|
|
const callback = arg0;
|
|
|
|
|
const tmp = callback2(undefined);
|
|
|
|
|
callback2 = tmp;
|
|
|
|
|
callback(() => {
|
|
|
|
|
closure_1.current = closure_0;
|
|
|
|
|
});
|
|
|
|
|
return tmp.current;
|
|
|
|
|
};
|