Open matheuscasavechia opened 2 years ago
Can you provide me with a more accurate environment or code to check the issue?
�Can you provide me with a more accurate environment or code to check the issue?
Like, i have a component that is using the tag AutoScroll, and this component i use an many screen in my app. When i'm in the home screen of my app (in this screen i declare the component), and navigate to another screen, screen that have the component, the AutoScroll stop the scroll, to get the scroll work again i need to retry the same flow, many times until they appear start working again... but when i continue testing the scroll stop again and i need to do the flow again to get the component working again.
@matheuscasavechia did you find solution about this error?
I had the same problem and I fixed it by deleting the following code snippet from index.tsx
:
React.useEffect(() => {
return () => {
contentRef.current = null;
};
});
Depending on how you setup your app, it appears that contentRef.current
can be null
even though you have data in your children components. React is apparently already setting contentRef.current
to null
when the component is unmounted.
@julien-ctx it works, thanks man.
I had the same problem and I fixed it by deleting the following code snippet from
index.tsx
:React.useEffect(() => { return () => { contentRef.current = null; }; });
Depending on how you setup your app, it appears that
contentRef.current
can benull
even though you have data in your children components. React is apparently already settingcontentRef.current
tonull
when the component is unmounted.
Thank you. Can you help me by make a pull request?
Hi everyone, I'm having a problem with te animation... I use the same component exporting it to use in another screen and the component is using AutoScroll, but when i navigate to another screen, and this has the component i'm exporting, the animation stop... Can you guys help me ?