decord/source/__polyfill/06xxx/module_6976.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

37 lines
964 B
JavaScript

// Module ID: 6976
// Function ID: 6977
// Dependencies: [6958, 19, 6977]
// Exports: useLayoutState
// Module 6976
import _mod6977 from "module_6977" /* 6977 */;
import _slicedToArray from "module_6958" /* 6958 */;
require = fn;
const noop = fn(19);
({ useState: c3, useCallback: closure_4 } = noop);
export const useLayoutState = function useLayoutState(arg0) {
const tmp = _slicedToArray(React3(arg0), 2);
closure_0 = tmp[1];
const recyclerViewContext = _mod6977.useRecyclerViewContext();
const items = [tmp[0], ];
const items1 = [recyclerViewContext];
items[1] = React4((arg0, arg1) => {
closure_0 = arg0;
closure_0((arg0) => {
let tmpResult = closure_0;
if (typeof closure_0 === "function") {
tmpResult = tmp(arg0);
}
return tmpResult;
});
if (!arg1) {
if (recyclerViewContext != null) {
obj.layout();
}
obj = recyclerViewContext;
}
}, items1);
return items;
};