Skip to content

Commit

Permalink
chore: update react-query (#2591)
Browse files Browse the repository at this point in the history
### What changed?
- Replaced various instances of `useTanQuery` with `useSuspenseTanQuery` in the codebase.
- Adjusted imports to ensure `useSuspenseTanQuery` is used from the `@tanstack/react-query` package.
- Adjusted suspense-related settings in query hooks to ensure proper behavior.

### Why make this change?
- This change ensures that suspense behavior is consistently applied where necessary, optimizing the React components' data fetching mechanism with suspense.
- This is particularly useful for ensuring that components display fallback content while data is being fetched, improving the user experience.

### How to test?
1. Verify that the application builds correctly without errors related to the query hooks.
2. Check that components using `useSuspenseTanQuery` correctly handle data fetching with suspense, displaying fallback content where appropriate.
3. Ensure the application behaves as expected without regressions in functionality.
  • Loading branch information
yomybaby committed Aug 9, 2024
1 parent b0e0926 commit bbb45c5
Show file tree
Hide file tree
Showing 33 changed files with 242 additions and 227 deletions.
3 changes: 2 additions & 1 deletion react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@cloudscape-design/board-components": "3.0.60",
"@codemirror/language": "^6.10.2",
"@storybook/test": "^8.2.8",
"@tanstack/react-query": "^5.51.15",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^15.0.7",
"@types/jest": "^29.5.12",
Expand Down Expand Up @@ -42,7 +43,6 @@
"react-error-boundary": "^4.0.13",
"react-i18next": "^14.1.3",
"react-markdown": "^9.0.1",
"react-query": "^3.39.3",
"react-relay": "^16.2.0",
"react-router-dom": "^6.26.0",
"react-scripts": "5.0.1",
Expand Down Expand Up @@ -100,6 +100,7 @@
"@storybook/react": "^8.2.8",
"@storybook/react-webpack5": "^8.2.8",
"@storybook/testing-library": "^0.2.2",
"@tanstack/eslint-plugin-query": "^5.51.15",
"@testing-library/user-event": "^14.5.2",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-relay": "^16.0.6",
Expand Down
Loading

0 comments on commit bbb45c5

Please sign in to comment.