Fix re-rendering issue

This commit is contained in:
jude
2026-05-23 18:15:41 +01:00
parent 05c7b9151c
commit b1fda50d4c
2 changed files with 13 additions and 17 deletions
+1
View File
@@ -28,3 +28,4 @@ dist-ssr
*.njsproj
*.sln
*.sw?
.junie
+12 -17
View File
@@ -28,22 +28,16 @@ const InnerApp = () => {
<div style={{margin: "0 12px 12px 12px"}}>
<Switch>
<Route path={"/@me/reminders"} component={User}></Route>
<Route
path={"/:guild/reminders"}
component={() => (
<Guild>
<GuildReminders/>
</Guild>
)}
></Route>
<Route
path={"/:guild/todos"}
component={() => (
<Guild>
<GuildTodos/>
</Guild>
)}
></Route>
<Route path={"/:guild/reminders"}>
<Guild>
<GuildReminders/>
</Guild>
</Route>
<Route path={"/:guild/todos"}>
<Guild>
<GuildTodos/>
</Guild>
</Route>
<Route>
<Welcome/>
</Route>
@@ -55,8 +49,9 @@ const InnerApp = () => {
);
};
const queryClient = new QueryClient();
export function App() {
const queryClient = new QueryClient();
return (
<QueryClientProvider client={queryClient}>