github apollographql/apollo-client @apollo/client@4.3.0-alpha.11

latest releases: @apollo/client-graphql-codegen@2.2.0-rc.0, @apollo/client@4.3.0-rc.0
pre-release8 hours ago

Minor Changes

  • #13386 0be8fd8 Thanks @atharv-sys32! - Support skipToken with useSubscription to provide a more type-safe way to skip subscription execution with required variables.

    import { skipToken, useSubscription } from "@apollo/client/react";
    
    // Use `skipToken` in place of `skip: true` for better type safety
    // for required variables
    const { data } = useSubscription(
      SUBSCRIPTION,
      id ? { variables: { id } } : skipToken
    );
  • #13424 d2bca2e Thanks @jerelmiller! - Remove the custom NoInfer type utility in favor of the native NoInfer introduced in TypeScript 5.4.

Don't miss a new apollo-client release

NewReleases is sending notifications on new releases.