icssc / peterportal-client

A web application to aid UCI students with course discovery and planning.
https://peterportal.org
MIT License
15 stars 12 forks source link

Not fetching professor data when user clicks professor tab #305

Closed MFYLM closed 10 months ago

MFYLM commented 1 year ago

If you go to https://peterportal.org/search/courses and click professor tab on the top left, you will go to https://peterportal.org/search/professors and see an empty page about professors like this, which is not consistent with course page.

image

But if you refresh the page, it will retrieve necessary data from backend, so it may have something to do with changing state that does not trigger component to be re-rendered.

MFYLM commented 1 year ago

Update: This issue will happen after refreshing on professor page and course page will appear to be empty in this case. Apparently, switching tabs will not trigger fetching.

image