manager icon indicating copy to clipboard operation
manager copied to clipboard

refactor: [M3-8462] - Upgrade to TanStack Query v5

Open bnussman-akamai opened this issue 1 year ago โ€ข 1 comments

Description ๐Ÿ“

  • Finishes updating React Query (aka TanStack Query) to latest ๐Ÿ“ฆ
  • Fixes deprecations according to this guide

Main Changes ๐Ÿ”

  • Mutations use isPending instead of isLoading to 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 use placeholderData with the keepPreviousData helper.
  • initialPageParam is now a required option on Infinite Queries

Preview ๐Ÿ“ท

Screenshot 2024-08-19 at 6 32 32โ€ฏPM

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

bnussman-akamai avatar Aug 19 '24 22:08 bnussman-akamai

Coverage Report: โŒ
Base Coverage: 86.08%
Current Coverage: 86.04%

github-actions[bot] avatar Aug 20 '24 15:08 github-actions[bot]