mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 11:42:36 +08:00
19 lines
506 B
TypeScript
19 lines
506 B
TypeScript
import { initDevFeatures } from 'app/dev';
|
|
import { notifyIfMockApiEnabled } from 'app/dev-utils';
|
|
|
|
/**
|
|
* Lifecycle tasks that need to be run prior to app initialization,
|
|
* such as setting up mock APIs or enabling dev-only features
|
|
*/
|
|
export async function preInitTasks() {
|
|
await initDevFeatures();
|
|
}
|
|
|
|
/**
|
|
* Lifecycle tasks that need to be run once the app has fully initialized,
|
|
* such as notifying if mock APIs are enabled
|
|
*/
|
|
export async function postInitTasks() {
|
|
notifyIfMockApiEnabled();
|
|
}
|