Skip to content

Missing highlight on useAppDispatch() #4726

@mattbal

Description

@mattbal

What docs page needs to be fixed?

https://redux.js.org/tutorials/essentials/part-5-async-logic#dispatching-thunks-from-components

What is the problem?

There's no highlight for the line

export const PostsList = () => {
  const dispatch = useAppDispatch()

even though it's being added to the function PostsList for the first time.

You can verify this line is new by looking at the two previous pages, Basic Redux Data Flow and Using Redux Data, and searching for features/posts/PostsList.tsx using Ctrl + F. If you look at the previous code blocks none of them included useAppDispatch()

What should be changed to fix the problem?

Make it so that the line is highlighted like the other lines to show that it's new.

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