Skip to content

Named arguments are inconsistency in Channel component #2

@ytliuSVN

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!

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