reduxjs / redux

A JS library for predictable global state management
https://redux.js.org
MIT License
60.94k stars 15.27k forks source link

Missing highlight on useAppDispatch() #4726

Closed mattbal closed 3 months ago

mattbal commented 3 months ago

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.