react-firechat icon indicating copy to clipboard operation
react-firechat copied to clipboard

Named arguments are inconsistency in Channel component

Open ytliuSVN opened this issue 4 years ago • 0 comments

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 avatar Apr 09 '21 07:04 ytliuSVN