refactor: switch to using Bun (#718)

This commit is contained in:
Dan Ditomaso
2025-07-16 22:30:10 -04:00
committed by GitHub
parent acfd7ebd2d
commit 704d06cfe7
401 changed files with 35294 additions and 39107 deletions
+11 -8
View File
@@ -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>