Skip to content

Conversation

@jiang-yifan
Copy link

This fixes an issue where useEffect hook that initializes the subscription may be called after a child component's useEffect.

If the child component's useEffect is doing a clickCallBack to trigger event$.next(), the subscription may not have happened yet resulting in the event being ignored.

By subscribing synchronously, we make sure that the subscription is live before anything else can happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant