decord/source/__polyfill/08xxx/module_8028.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

38 lines
1.2 KiB
JavaScript

// Module ID: 8028
// Function ID: 8029
// Dependencies: [19, 1485]
// Exports: useInvalidPreventRemoveError
// Module 8028
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);
};