Skip to content
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

Update React Query #2514

Merged
merged 1 commit into from
Oct 7, 2022
Merged

Update React Query #2514

merged 1 commit into from
Oct 7, 2022

Commits on Oct 7, 2022

  1. Update React Query

    React Query v4 switches to a new package name, so `react-query`
    is now `@tanstack/react-query`.
    
    Breaking changes:
    - all query keys must be arrays, so for example `'properties'` is
      now `['properties']`
    - query data is read-only in the response from `useQuery`
    - disabled queries are 'loading' by default, need to switch to
      `isInitialLoading` flag to prevent blocking page in loading state
      in case of disabled queries, e.g. Pipeline resource on PipelineRun
      page when using an inline Pipeline spec as we never need to request
      a Pipeline resource in that case
    - `setLogger` removed, logger is now set as a property when defining
      the QueryClient
    - `undefined` is no longer a valid value for the data returned for
      a successful query
    
    Package imports and most of the key updates were achieved using the
    provided codemods. Some manual changes required to address the rest.
    
    Tests updated to match including fix for infrequent flake in App.test
    AlanGreene committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    48bdd16 View commit details
    Browse the repository at this point in the history