tektoncd/dashboard

Update React

AlanGreene opened this issue · 0 comments

Update to the next major React release (currently v18, v19 may be released soon)

A number of other dependencies will also need to be updated at the same time:

  • @tanstack/react-query@5
    • v5 drops support for React 17
    • most of the preparation already done as part of React Router v6 update in #3465 and related issues. Remaining config changes described below
    • originally described in #2452 (comment)
    • https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5
      • rename cacheTime to gcTime
      • rename isLoading to isPending
        • also renames status: loading to status: pending, and isInitialLoading to isLoading
        • can we stick with isLoading for most of our use cases? (the new isLoading is isPending && isFetching)
        • see the 'status: pending' section of TanStack/query#4252 for details
    • minimum react version 18.2.0
  • @testing-library/react@13 or later
    • v13 drops support for React 17
  • ?