You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When re-rendering the component in "react-native" version: "0.63.5", the app crashes. An error is identified that subscription.remove() is not a function because subscription is undefined.
To Reproduce
Steps to reproduce the behavior:
You are in the view where your Swipe Button component is.
you go to any other view
You return to the first view where the Swipe Button component is
and the app dies and shows the mentioned error
Expected behavior
I hope that when re-rendering the component the app does not die
Additional context
It is solved by adding optional chaining in subscription in the useEffect return function
The text was updated successfully, but these errors were encountered:
Describe the bug
When re-rendering the component in "react-native" version: "0.63.5", the app crashes. An error is identified that subscription.remove() is not a function because subscription is undefined.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I hope that when re-rendering the component the app does not die
Additional context
It is solved by adding optional chaining in subscription in the useEffect return function
The text was updated successfully, but these errors were encountered: