Skip to content

Commit e15c47a

Browse files
committed
Update workding with Michael suggestions
1 parent a0f96c8 commit e15c47a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/contributing/frontend.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ we were creating a header component for that page, we would have needed to fetch
115115
the data in the page component and pass it down through the hierarchy
116116
(`UsersPage -> UsersPageView -> UsersHeader`). Now, with advancements such as
117117
`react-query`, data fetching can be performed directly in the `UsersHeader`
118-
component, eliminating the need for multiple places to handle the same request
118+
component, allowing UI elements to declare and consume their data-fetching
119+
dependencies directly, while preventing duplicate server requests
119120
([more info](https://github.com/TanStack/query/discussions/608#discussioncomment-29735)).
120121

121122
To simplify visual testing of scenarios where components are responsible for

0 commit comments

Comments
 (0)