After using the Search in the navbar again after an initial search, the page does not rerender without a full refresh of the page.
In this PR, I have added a componentDidUpdate method to ensure that the page refreshes when the searchQuery prop changes (the prop that gets pulled down from App.jsx).
Description
After using the Search in the navbar again after an initial search, the page does not rerender without a full refresh of the page.
In this PR, I have added a
componentDidUpdate
method to ensure that the page refreshes when the searchQuery prop changes (the prop that gets pulled down from App.jsx).Linked Issue
98
Thanks to @steven-solar for pointing this out!