-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pr/warn-on-useless-options
- Loading branch information
Showing
5 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: pkg-pr-new Publish | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "**" | ||
tags: | ||
- "!**" | ||
|
||
jobs: | ||
prerelease: | ||
name: pkg-pr-new Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js 20.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Prebuild libs | ||
run: yarn build:libs | ||
|
||
- name: Build and publish to pkg.pr.new | ||
run: yarn dlx pkg-pr-new publish --no-template packages/client-react-streaming packages/experimental-nextjs-app-support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/client-react-streaming/src/ManualDataTransport/ApolloRehydrateSymbols.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
import type { DataTransport } from "./dataTransport.js"; | ||
import type { RehydrationCache } from "./types.js"; | ||
|
||
declare global { | ||
interface Window { | ||
[ApolloSSRDataTransport]?: DataTransport<unknown>; | ||
[ApolloHookRehydrationCache]?: RehydrationCache; | ||
} | ||
} | ||
export const ApolloSSRDataTransport = /*#__PURE__*/ Symbol.for( | ||
"ApolloSSRDataTransport" | ||
); | ||
|
||
export const ApolloHookRehydrationCache = /*#__PURE__*/ Symbol.for( | ||
"apollo.hookRehydrationCache" | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters