-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from unstubbable/replace-server-context
Replace server context with `AsyncLocalStorage` and client context
- Loading branch information
Showing
24 changed files
with
186 additions
and
172 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
// This is in a separate file so that we can configure webpack to use the | ||
// `react-server` layer for this module, and therefore the imported modules | ||
// (React and the server components) will be imported with the required | ||
// `react-server` condition. | ||
|
||
import {App} from '@mfng/shared-app/app.js'; | ||
import * as React from 'react'; | ||
|
||
export function createRscApp(): React.ReactNode { | ||
return <App getTitle={(pathname) => `Cloudflare RSC/SSR demo ${pathname}`} />; | ||
} |
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
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
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
This file was deleted.
Oops, something went wrong.
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
31 changes: 0 additions & 31 deletions
31
apps/vercel-app/src/edge-function-handler/create-rsc-app-options.tsx
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
apps/vercel-app/src/edge-function-handler/create-rsc-app.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This is in a separate file so that we can configure webpack to use the | ||
// `react-server` layer for this module, and therefore the imported modules | ||
// (React and the server components) will be imported with the required | ||
// `react-server` condition. | ||
|
||
import {App} from '@mfng/shared-app/app.js'; | ||
import * as React from 'react'; | ||
|
||
export function createRscApp(): React.ReactNode { | ||
return ( | ||
<App getTitle={(pathname) => `Vercel Edge RSC/SSR demo ${pathname}`} /> | ||
); | ||
} |
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
Oops, something went wrong.
d954c08
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mfng – ./
mfng-unstubbable.vercel.app
mfng.vercel.app
mfng-git-main-unstubbable.vercel.app