-
I'm trying to What I'm trying to do is pipe the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I think the problem is that you have the subscribe in the render function of your React component. Essentially, every time there's an update, you are making a new subscription which will do more trigger more updates, which will make more subscriptions, etc. You need to wrap it in a |
Beta Was this translation helpful? Give feedback.
I think the problem is that you have the subscribe in the render function of your React component. Essentially, every time there's an update, you are making a new subscription which will do more trigger more updates, which will make more subscriptions, etc.
You need to wrap it in a
useEffect
, and properly clean the subscription up on the cleanup function.