Skip to content

0.4.0: Going 3.8 RC and no more need for `SuspenseCache`

Choose a tag to compare

@phryneas phryneas released this 18 Jul 10:01
· 355 commits to main since this release
9b33aee

This PR now relies on @apollo/client in the 3.8 Release Candidate versions instead of the Beta tag.

The Release Candidate versions do no longer need a SuspenseCache, so you can remove the makeSuspenseCache function from your ApolloNextAppProvider.

-function makeSuspenseCache() {
-  return new SuspenseCache();
-}

export function ApolloWrapper({ children }: React.PropsWithChildren) {
  return (
    <ApolloNextAppProvider
      makeClient={makeClient}
-     makeSuspenseCache={makeSuspenseCache}
    >
      {children}
    </ApolloNextAppProvider>
  );