decord/source/__polyfill/08xxx/module_8025.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

38 lines
1.2 KiB
JavaScript

// Module ID: 8025
// Function ID: 8026
// Dependencies: [19, 1484]
// Exports: useInvalidPreventRemoveError
// Module 8025
import Link from "Link" /* 1484 */;
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);
};