digitalfabrik / lunes-app

The front end for the Lunes vocabulary trainer. Back end: https://github.com/digitalfabrik/lunes-cms
https://lunes.app
Apache License 2.0
24 stars 5 forks source link

LUN-471: Cancel subscription in favorite button #899

Closed jira-to-github-migrator[bot] closed 1 year ago

jira-to-github-migrator[bot] commented 1 year ago

Stefanie Metzger - 6.2.2023, 14:16:52

We get this error in the Favorite Button e.g. when opening the dictionary and enter something in the searchbar:

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.     in FavoriteButton (at VocabularyListItem.tsx:75)

This error should be fixed

Environment: - Linked issues: