Skip to content

docs: update FE fetching data docs #11376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update workding with Michael suggestions
  • Loading branch information
BrunoQuaresma committed Jan 2, 2024
commit e15c47a3f5543486827aeca3046b8a440a568c17
3 changes: 2 additions & 1 deletion docs/contributing/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ we were creating a header component for that page, we would have needed to fetch
the data in the page component and pass it down through the hierarchy
(`UsersPage -> UsersPageView -> UsersHeader`). Now, with advancements such as
`react-query`, data fetching can be performed directly in the `UsersHeader`
component, eliminating the need for multiple places to handle the same request
component, allowing UI elements to declare and consume their data-fetching
dependencies directly, while preventing duplicate server requests
([more info](https://github.com/TanStack/query/discussions/608#discussioncomment-29735)).

To simplify visual testing of scenarios where components are responsible for
Expand Down