refactor: switch to using Bun (#718)
This commit is contained in:
@@ -5,10 +5,10 @@ import "maplibre-gl/dist/maplibre-gl.css";
|
||||
import { Suspense } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import "./i18n-config.ts";
|
||||
import { createRouter, RouterProvider } from "@tanstack/react-router";
|
||||
import { router } from "@app/routes.tsx";
|
||||
import { useAppStore } from "@core/stores/appStore.ts";
|
||||
import { useMessageStore } from "@core/stores/messageStore/index.ts";
|
||||
import { type createRouter, RouterProvider } from "@tanstack/react-router";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
declare module "@tanstack/react-router" {
|
||||
@@ -25,13 +25,16 @@ function IndexPage() {
|
||||
const messageStore = useMessageStore();
|
||||
const translation = useTranslation();
|
||||
|
||||
const context = React.useMemo(() => ({
|
||||
stores: {
|
||||
app: appStore,
|
||||
message: messageStore,
|
||||
},
|
||||
i18n: translation,
|
||||
}), [appStore, messageStore]);
|
||||
const context = React.useMemo(
|
||||
() => ({
|
||||
stores: {
|
||||
app: appStore,
|
||||
message: messageStore,
|
||||
},
|
||||
i18n: translation,
|
||||
}),
|
||||
[appStore, messageStore, translation],
|
||||
);
|
||||
|
||||
return (
|
||||
<React.StrictMode>
|
||||
|
||||
Reference in New Issue
Block a user