decord/source/1555_usePreventRemoveContext.js

21 lines
523 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 1555
// Function ID: 1556
2026-07-20 16:05:17 +00:00
// Name: usePreventRemoveContext
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 1527]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 1555 (usePreventRemoveContext)
import noop from "noop";
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
export default function usePreventRemoveContext() {
2026-07-29 08:29:29 +00:00
const context = React.useContext(importDefault(1527));
2026-07-20 16:05:17 +00:00
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;
}
};