Bot releases are hidden (Show)
apollo-link
)gql
in templateskip
is true (#511)and
prefetch` query options definitions (#556)Published by Akryum over 5 years ago
The SSR system has been completely reworked to use the brand new serverPrefetch
system from Vue 2.6. This means a few things:
Take a look at the updated SSR guide!
provide: apolloProvider.provide()
to apolloProvider
on your root instance (like some time ago). The injection of $apolloProvider
in instances should be unchanged (works like inject/provide).clientId
in ApolloMutation component (#359)debounce
and throttle
in ApolloQuery component (#349)tag
prop is undefined (#365)this
type for watchLoading
(#360)error.gqlError
is the first GraphQL error if any, also available in Apollo Components slot-scope as gqlError
.apolloClient.resetStore()
)console.log
in error handler$query
optionisLoading
to scoped-slot (#218)no-cache smar
t queries are throwing exceptions in optimistic UI updates (#280)<ApolloMutation/>
component added (docs)<ApolloQuery/>
component (docs)times
scoped slot prop added for <ApolloQuery/>
result
hook on subscribeToMore
in smart queriesdata()
ApolloProvider
now uses the inject
/provide
feature of Vue to inject itself into any child component in the app. Migration path: replace apolloProvider,
with provide: apolloProvider.provide(),
on you main Vue instance (doc).willPrefetch
now accepts a 2nd argument, which is a callback getting the context as argument and that should return a boolean indicating if the component will be prefetched or not (doc).willPrefetch
is now exposed on window
or global
as vueApolloWillPrefetch
. This can be useful when authoring 3rd-party libraries using vue-apollo.