-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix (ai/rsc): "could not find InternalStreamableUIClient" bug (#2068)
- Loading branch information
Showing
24 changed files
with
916 additions
and
563 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,5 @@ | ||
--- | ||
'ai': patch | ||
--- | ||
|
||
fix (ai/rsc): "could not find InternalStreamableUIClient" bug |
91 changes: 91 additions & 0 deletions
91
packages/core/rsc/__snapshots__/streamable.ui.test.tsx.snap
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,91 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`rsc - render() > should emit React Nodes with async render function 1`] = ` | ||
{ | ||
"children": { | ||
"children": {}, | ||
"props": { | ||
"c": undefined, | ||
"n": { | ||
"done": false, | ||
"next": { | ||
"done": true, | ||
"value": <div> | ||
Weather | ||
</div>, | ||
}, | ||
"value": <div> | ||
Weather | ||
</div>, | ||
}, | ||
}, | ||
"type": "", | ||
}, | ||
"props": { | ||
"fallback": undefined, | ||
}, | ||
"type": "Symbol(react.suspense)", | ||
} | ||
`; | ||
|
||
exports[`rsc - render() > should emit React Nodes with generator render function 1`] = ` | ||
{ | ||
"children": { | ||
"children": {}, | ||
"props": { | ||
"c": undefined, | ||
"n": { | ||
"done": false, | ||
"next": { | ||
"done": false, | ||
"next": { | ||
"done": true, | ||
"value": <div> | ||
Weather | ||
</div>, | ||
}, | ||
"value": <div> | ||
Weather | ||
</div>, | ||
}, | ||
"value": <div> | ||
Loading... | ||
</div>, | ||
}, | ||
}, | ||
"type": "", | ||
}, | ||
"props": { | ||
"fallback": undefined, | ||
}, | ||
"type": "Symbol(react.suspense)", | ||
} | ||
`; | ||
|
||
exports[`rsc - render() > should emit React Nodes with sync render function 1`] = ` | ||
{ | ||
"children": { | ||
"children": {}, | ||
"props": { | ||
"c": undefined, | ||
"n": { | ||
"done": false, | ||
"next": { | ||
"done": true, | ||
"value": <div> | ||
Weather | ||
</div>, | ||
}, | ||
"value": <div> | ||
Weather | ||
</div>, | ||
}, | ||
}, | ||
"type": "", | ||
}, | ||
"props": { | ||
"fallback": undefined, | ||
}, | ||
"type": "Symbol(react.suspense)", | ||
} | ||
`; |
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 |
---|---|---|
|
@@ -8,5 +8,4 @@ export { | |
useActions, | ||
useSyncUIState, | ||
InternalAIProvider, | ||
InternalStreamableUIClient, | ||
} from './shared-client'; |
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
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.