Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
21 lines
623 B
JavaScript
21 lines
623 B
JavaScript
// Module ID: 1579
|
|
// Function ID: 1580
|
|
// Dependencies: [19, 1554]
|
|
// Exports: usePreventRemoveContext
|
|
|
|
// Module 1579
|
|
import PreventRemoveContext from "PreventRemoveContext" /* 1554 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = arg1;
|
|
|
|
export const usePreventRemoveContext = function usePreventRemoveContext() {
|
|
const context = noop.useContext(PreventRemoveContext.PreventRemoveContext);
|
|
if (null == context) {
|
|
const _Error = Error;
|
|
const error = new Error("Couldn't find the prevent remove context. Is your component inside NavigationContent?");
|
|
throw error;
|
|
} else {
|
|
return context;
|
|
}
|
|
};
|