Change8

@apollo/client@4.0.11

📦 apollo-client
1 features🐛 2 fixes🔧 4 symbols

Summary

Patch release fixing refetch behavior for standby queries and replacing `findLast` with compatible methods, plus a hidden option for framework integrations.

✨ New Features

  • Added hidden option `[variablesUnknownSymbol]` to `client.watchQuery` to indicate queries with unknown variables (standby fetchPolicy) should be excluded from refetch until first execution.

🐛 Bug Fixes

  • Replaced usage of `findLast` with more backwards‑compatible methods.
  • Fixed inclusion of `skipToken` queries and lazy queries from `useLazyQuery` in `client.refetchQueries()` before their initial execution; such queries are now excluded until variables are known.

🔧 Affected Symbols

client.watchQueryclient.refetchQueriesuseLazyQueryObservableQuery