Prevent route from rerendering

Is it possible to prevent a rerender going from /page1/subpage to /page1 or vice versa? I am dealing with the routing like so, but seems to trigger a rerender regardless.
<Route path='/myRoute' element={
<Suspense fallback={<Loader/>}>
<MyRoute/>
</Suspense>
}>
<Route path='/test' element={null}/>
</Route>
<Route path='/myRoute' element={
<Suspense fallback={<Loader/>}>
<MyRoute/>
</Suspense>
}>
<Route path='/test' element={null}/>
</Route>
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server