COS301-SE-2021 / Harmony

Visiting South Africa a tourist would not know what a Bunny Chow is, let alone what it pairs well with. They would pull out their phone, snap a picture of their meal and Harmony would show them the best possible drink pairings.
5 stars 0 forks source link

Filter not applying after second login #177

Closed JdPerumal closed 3 years ago

JdPerumal commented 3 years ago

The filter applies and works as expected when a user initially Signs in. After signing out and back in however the filter no longer works and we receive this error message:

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.

JdPerumal commented 3 years ago

Resolved by re-implementing filter with Context and replacing Redux implementation.