decord/source/__polyfill/08xxx/module_8043.js
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

38 lines
1.2 KiB
JavaScript

// Module ID: 8043
// Function ID: 8044
// Dependencies: [19, 1485]
// Exports: useInvalidPreventRemoveError
// Module 8043
import Link from "Link" /* 1485 */;
import noop from "module_19" /* 19 */;
require = arg1;
export const useInvalidPreventRemoveError = function useInvalidPreventRemoveError(descriptors) {
const first = Object.keys(Link.usePreventRemoveContext().preventedRoutes)[0];
let prop;
if (descriptors[first] != null) {
const options = tmp2.options;
if (options != null) {
prop = options.headerBackButtonMenuEnabled;
}
}
let name;
if (descriptors[first] != null) {
const route = tmp2.route;
if (route != null) {
name = route.name;
}
}
const items = [first, prop, name];
const effect = noop.useEffect(() => {
if (null != first) {
if (prop) {
const _HermesInternal = HermesInternal;
const _console = console;
console.error("The screen " + name + " uses 'usePreventRemove' hook alongside 'headerBackButtonMenuEnabled: true', which is not supported. \n\nConsider removing 'headerBackButtonMenuEnabled: true' from " + name + " screen to get rid of this error.");
}
}
}, items);
};