This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
2
React-router not loading css for nested pages when I hit back button
Post Body
when I type in ` /feedBackHub/myassignments/editfeedback` url, my Material UI styles appear but when I go to another link like /feedBackHub & then hit BACK ..when I go back to `/feedBackHub/myassignments/editfeedback` the MUI styles appear distorted & have weird behavior.
but if I reload ` /feedBackHub/myassignments/editfeedback` the MUI styles appear fine.
What could be the cause of this weird css behavior ?
this is my router
export const FeedBackRouter: VFC = (): JSX.Element => {
Explain
const path = useRouteMatch();
return (
<div className="feedback-hub-content"> <Route exact path={'/feedBackHub'}> <FeedBackHub/> </Route> <Route exact path={`/feedBackHub/search`} > <FeedBackHubSearch/> </Route> <Route exact path={`/feedBackHub/myassignments`} > <MyAssignmentsPage/> </Route> <Route exact path={`/feedBackHub/myassignments/editfeedback`} > <EditFeedback/> </Route> </div> Â Â ) }
Author
Account Strength
90%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
2,204
Link Karma
1,287
Comment Karma
900
Profile updated: 4 hours ago
Posts updated: 1 week ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/webdev/comm...