Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named arguments are inconsistency in Channel component #2

Open
ytliuSVN opened this issue Apr 9, 2021 · 0 comments
Open

Named arguments are inconsistency in Channel component #2

ytliuSVN opened this issue Apr 9, 2021 · 0 comments

Comments

@ytliuSVN
Copy link

ytliuSVN commented Apr 9, 2021

Thanks for the great content! I have always enjoyed your videos.
There has one minor issue in your Channel component session of the article.

In the beginning, we created a state variable to store our messages within the Channel component.

Screenshot from 2021-04-09 15-37-03

Then, we update our state within the useEffect hook.
The setDocs(data) was not declared in the component scope. Perhaps you would like to change it to setMessages(data).

Update state

Correct me if I was wrong. Thank you!

@ytliuSVN ytliuSVN changed the title Named Arguments are inconsistency in Channel component Named arguments are inconsistency in Channel component Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant