decord/source/__polyfill/01xxx/module_1573.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

22 lines
627 B
JavaScript

// Module ID: 1573
// Function ID: 1574
// Dependencies: [19, 1532]
// Exports: useCurrentRender
// Module 1573
import CurrentRenderContext from "CurrentRenderContext" /* 1532 */;
import noop from "module_19" /* 19 */;
require = arg1;
export const useCurrentRender = function useCurrentRender(arg0) {
({ state, navigation } = arg0);
const context = noop.useContext(CurrentRenderContext.CurrentRenderContext);
let isFocusedResult = context;
if (context) {
isFocusedResult = navigation.isFocused();
}
if (isFocusedResult) {
context.options = arg0.descriptors[state.routes[state.index].key].options;
}
};