fix: initialize Tankopedia with model definitions for improved data handling

This commit is contained in:
TrèsAbhi committed 2025-11-28 12:55:55 -06:00
1 parent d8f9a2633d
commit 1b398a5f66
1 file changed
+7
@@ -17,6 +17,7 @@ import {
TankSearch,
type TankSearchProps,
} from "../../../components/TankSearch";
import { awaitableModelDefinitions } from "../../../core/awaitables/modelDefinitions";
import { curateMixer } from "../../../core/blitzkit/curateMixer";
import {
LocaleProvider,
@@ -24,8 +25,13 @@ import {
type LocaleAcceptorProps,
} from "../../../hooks/useLocale";
import { Mixer } from "../../../stores/mixer";
import { Tankopedia } from "../../../stores/tankopedia";
import type { MaybeSkeletonComponentProps } from "../../../types/maybeSkeletonComponentProps";
const modelDefinition = await awaitableModelDefinitions.then(
({ models }) => models[1]
);
export function Page({
locale,
skeleton,
@@ -33,6 +39,7 @@ export function Page({
const initial = useRef(curateMixer());
Mixer.useInitialization(initial.current);
Tankopedia.useInitialization(modelDefinition);
return (
<PageWrapper color="gray" p="0" maxWidth="unset">