manager
manager copied to clipboard
refactor: [M3-8462] - Upgrade to TanStack Query v5
Description ๐
- Finishes updating React Query (aka TanStack Query) to
latest๐ฆ - Fixes deprecations according to this guide
Main Changes ๐
- Mutations use
isPendinginstead ofisLoadingto track if a mutation is executing - The option
keepPreviousData(an option we use to prevent flickering on paginated endpoints) is no longer a useQuery option. We now use must useplaceholderDatawith thekeepPreviousDatahelper. initialPageParamis now a required option on Infinite Queries
Preview ๐ท
How to test ๐งช
- Check the diff for anything suspicious ๐
- Perform general create/update/delete test for various features of Cloud Manager ๐งช
- Verify all automated testing passes โ
As an Author I have considered ๐ค
- [ ] ๐ Doing a self review
- [ ] โ Our contribution guidelines
- [ ] ๐ค Splitting feature into small PRs
- [ ] โ Adding a changeset
- [ ] ๐งช Providing/Improving test coverage
- [ ] ๐ Removing all sensitive information from the code and PR description
- [ ] ๐ฉ Using a feature flag to protect the release
- [ ] ๐ฃ Providing comprehensive reproduction steps
- [ ] ๐ Providing or updating our documentation
- [ ] ๐ Scheduling a pair reviewing session
- [ ] ๐ฑ Providing mobile support
- [ ] โฟ Providing accessibility support
Coverage Report: โ
Base Coverage: 86.08%
Current Coverage: 86.04%