decord/source/1594_usePreventRemoveContext.js
2026-08-11 06:20:06 +00:00

21 lines
627 B
JavaScript

// Module ID: 1594
// Function ID: 1595
// Name: usePreventRemoveContext
// Dependencies: [19, 1569]
// Exports: usePreventRemoveContext
// Module 1594 (usePreventRemoveContext)
import noop from "noop";
const require = arg1;
export const usePreventRemoveContext = function usePreventRemoveContext() {
const context = React.useContext(require(1569) /* 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;
}
};