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 *.njsproj
*.sln *.sln
*.sw? *.sw?
.junie
+12 -17
View File
@@ -28,22 +28,16 @@ const InnerApp = () => {
<div style={{margin: "0 12px 12px 12px"}}> <div style={{margin: "0 12px 12px 12px"}}>
<Switch> <Switch>
<Route path={"/@me/reminders"} component={User}></Route> <Route path={"/@me/reminders"} component={User}></Route>
<Route <Route path={"/:guild/reminders"}>
path={"/:guild/reminders"} <Guild>
component={() => ( <GuildReminders/>
<Guild> </Guild>
<GuildReminders/> </Route>
</Guild> <Route path={"/:guild/todos"}>
)} <Guild>
></Route> <GuildTodos/>
<Route </Guild>
path={"/:guild/todos"} </Route>
component={() => (
<Guild>
<GuildTodos/>
</Guild>
)}
></Route>
<Route> <Route>
<Welcome/> <Welcome/>
</Route> </Route>
@@ -55,8 +49,9 @@ const InnerApp = () => {
); );
}; };
const queryClient = new QueryClient();
export function App() { export function App() {
const queryClient = new QueryClient();
return ( return (
<QueryClientProvider client={queryClient}> <QueryClientProvider client={queryClient}>