Skip to content

docs: update FE guide #10942

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 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
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
8 changes: 4 additions & 4 deletions docs/contributing/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ conventions to help people to navigate through it.
- **@types** - Custom types for dependencies that don't have defined types
(largely code that has no server-side equivalent)
- **api** - API code as function calls and types
- **queries** - react-query queries and mutations
- **components** - UI components
- **hooks** - Hooks that can be used across the application
- **pages** - Page components
- **testHelpers** - Helper functions to help with integration tests
- **util** - Helper functions that can be used across the application
- **xServices** - XState machines used to handle complex state representations
- **static** - Static UI assets like images, fonts, icons, etc

## Routing
Expand Down Expand Up @@ -93,9 +93,9 @@ a `*.stories.ts` file.

## Fetching data

We use
[TanStack Query v4](https://tanstack.com/query/v4/docs/react/overview)(previously
known as react-query) to fetch data from the API.
We use [TanStack Query v4](https://tanstack.com/query/v4/docs/react/quick-start)
to fetch data from the API. The queries and mutation should be placed inside of
the api/queries folder when it is possible.

### Where to fetch data

Expand Down