18 lines
453 B
TypeScript
18 lines
453 B
TypeScript
import { useEffect } from "react";
|
|
import { UpdateAsync } from "@/UpdateAsync";
|
|
import { migrateLegacyVoicepeakSettings } from "@/lib/migrateLegacyVoicepeakSettings";
|
|
|
|
/**
|
|
* Runs one-time app startup side effects that are independent of navigation
|
|
* and the rendered root layout.
|
|
*/
|
|
export function useAppBootstrap(): void {
|
|
useEffect(() => {
|
|
UpdateAsync();
|
|
}, []);
|
|
|
|
useEffect(() => {
|
|
void migrateLegacyVoicepeakSettings();
|
|
}, []);
|
|
}
|