Skip to content

@apollo/client@4.3.0-alpha.11

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 21 Aug 16:28
· 0 commits to main since this release
f9c564c

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.