@apollo/client@4.0.0-rc.3
📦 apollo-client
✨ 1 features⚡ 1 deprecations🔧 3 symbols
Summary
Apollo Client now ships a React-Compiler compiled version of its React hooks via a new @apollo/client/react/compiled entry point, and the client.reFetchObservableQueries method has been renamed to client.refetchObservableQueries (deprecated alias retained).
Migration Steps
- If you want to use the compiled hooks, replace imports from @apollo/client/react with @apollo/client/react/compiled.
- Replace any usage of client.reFetchObservableQueries with client.refetchObservableQueries; the old name remains as an alias but will be removed in a future major version.
✨ New Features
- Added a new entry point @apollo/client/react/compiled that ships React-Compiler compiled React hooks, usable as a drop-in replacement for @apollo/client/react.
🔧 Affected Symbols
@apollo/client/react/compiledclient.reFetchObservableQueriesclient.refetchObservableQueries⚡ Deprecations
- client.reFetchObservableQueries is deprecated; use client.refetchObservableQueries instead. It will be removed in a future major version.