apollographql / apollographql/apollo-client-integrations
`NextSSRInMemoryCache` is not exported by `@apollo/experimental-nextjs-app-support/ssr`
- Dominant language
- TypeScript
- Stars
- 556
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
In `node_modules/.pnpm/@apollo+experimental-nextjs-app-support@0.9.1_@apollo+client@3.9.10_next@14.1.4_react@18.2.0/node_modules/@apollo/experimental-nextjs-app-support/dist/ssr/index.ssr.js`
```
import { useContext } from 'react';
import { buildManualDataTransport } from '@apollo/client-react-streaming/manual-transport';
export { resetManualSSRApolloSingletons as resetNextSSRApolloSingletons } from '@apollo/client-react-streaming/manual-transport';
import { WrapApolloProvider, ApolloClient } from '@apollo/client-react-streaming';
export { DebounceMultipartResponsesLink, InMemoryCache as NextSSRInMemoryCache, RemoveMultipartDirectivesLink, SSRMultipartLink } from '@apollo/client-react-streaming';
import { ServerInsertedHTMLContext } from 'next/navigation.js';
export { useBackgroundQuery, useFragment, useQuery, useReadQuery, useSuspenseQuery } from '@apollo/client/index.js';
// src/ApolloNextAppProvider.ts
// src/bundleInfo.ts
var bundle = {
pkg: "@apollo/experimental-nextjs-app-support/ssr",
client: "NextSSRApolloClient",
cache: "NextSSRInMemoryCache"
};
// src/ApolloNextAppProvider.ts
var ApolloNextAppProvider = /* @__PURE__ */ WrapApolloProvider(
buildManualDataTransport({
useInsertHtml() {
const insertHtml = useContext(ServerInsertedHTMLContext);
if (!insertHtml) {
throw new Error(
"ApolloNextAppProvider cannot be used outside of the Next App Router!"
);
}
return insertHtml;
}
})
);
ApolloNextAppProvider.info = bundle;
var NextSSRApolloClient = class extends ApolloClient {
/**
* Information about the current package and it's export names, for use in error messages.
*
* @internal
*/
static info = bundle;
};
export { ApolloNextAppProvider, NextSSRApolloClient };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.ssr.js.map
```
NextSSRInMemoryCache is not exported.
I am using version 0.9.1
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported dist/ssr/index.ssr.js artifact for @apollo/experimental-nextjs-app-support version 0.9.1 and trace how its public exports are produced. Done means NextSSRInMemoryCache can be imported from the ssr entry point; verify the package's relevant checks after the change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs, react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100