Skip to content

Named arguments are inconsistency in Channel component #2

Description

@ytliuSVN

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions