Previously, if an error occurred that triggered messaging to appear onscreen, the user would have to refresh to clear the message once the issue was resolved. This PR fixes that issue so that if a new set of movies loads, or the user navigates away from the detail page, the error message clears automatically.
Checklist
[x] My PR has an appropriately descriptive and concise title.
[x] My code follows the Turing Style Guides and best practices.
[x] I ran the code locally and verified that there are no visible errors.
[x] fix: My PR clearly describes what bug I'm fixing and why.
Description
Previously, if an error occurred that triggered messaging to appear onscreen, the user would have to refresh to clear the message once the issue was resolved. This PR fixes that issue so that if a new set of movies loads, or the user navigates away from the detail page, the error message clears automatically.
Checklist