feat: Add on mode init hook (#3882)
This commit is contained in:
1 parent
5a1cb842f0
commit
f58725ce40
2 files changed
+19
No files matched your search
@@ -124,6 +124,15 @@ export default function ModeRoute({
|
||||
const params = useParams();
|
||||
// The URL's query search parameters where the keys casing is maintained
|
||||
const query = useSearchParams();
|
||||
|
||||
mode?.onModeInit?.({
|
||||
servicesManager,
|
||||
extensionManager,
|
||||
commandsManager,
|
||||
appConfig,
|
||||
query,
|
||||
});
|
||||
|
||||
// The URL's query search parameters where the keys are all lower case.
|
||||
const lowerCaseSearchParams = useSearchParams({ lowerCaseKeys: true });
|
||||
|
||||
@@ -341,6 +350,7 @@ export default function ModeRoute({
|
||||
servicesManager,
|
||||
extensionManager,
|
||||
commandsManager,
|
||||
appConfig,
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user