decord/source/1528_useNavigationState.js

26 lines
731 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1528
2026-07-24 07:16:23 +00:00
// Function ID: 17494
2026-07-20 16:05:17 +00:00
// Name: useNavigationState
2026-07-23 10:11:24 +00:00
// Dependencies: [57, 31, 1508]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 1528 (useNavigationState)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import result from "result";
2026-07-20 16:05:17 +00:00
export default function useNavigationState(arg0) {
const importDefault = arg0;
2026-07-23 10:11:24 +00:00
obj = importDefault(obj[2])();
callback = callback(React.useState(() => callback(obj.getState())), 2)[1];
React = React.useRef(arg0);
2026-07-20 16:05:17 +00:00
const effect = React.useEffect(() => {
2026-07-23 10:11:24 +00:00
result.current = closure_0;
2026-07-20 16:05:17 +00:00
});
const items = [obj];
const effect1 = React.useEffect(() => obj.addListener("state", (data) => {
2026-07-23 10:11:24 +00:00
outer1_2(outer1_3.current(data.data.state));
2026-07-20 16:05:17 +00:00
}), items);
return arg0(obj.getState());
};