I have my react application Setup Router as it looks like the code below. My application looks like reloading the entire page during the route transformation because the header is well within the Suspense, the portion has been replaced with ' Fallback ' and then replaced with original content.
<App>
<BrowserRouter>
<Supsense fallback={Fallback}>
<Header>
<Route component={Settings} path="/settings" />
<Route component={HomePage} path="/" exact />
</Supsense>
</BrowserRouter>
</App>
Inside the settings page, I have another subroutes
const Users = lazy(() => import("./organization"));
const Organization = lazy(() => import("./users"));
const Settings = ()=>{
return (
<Fragment>
<h1>Settings </h1>
<Route path={`${match.url}/organization`} component={Organization} />
<Route path={`${match.url}/users`} exact component={Users} />
</Fragment>
)
}