File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
packages/react-server-dom-fb/src Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ import {
2525import { setByteLengthOfChunkImplementation } from 'react-server/src/ReactServerStreamConfig' ;
2626
2727export {
28+ registerClientReference ,
29+ registerServerReference ,
2830 getRequestedClientReferencesKeys ,
2931 clearRequestedClientReferencesKeysSet ,
3032 setCheckIsClientReference ,
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ export function setCheckIsClientReference(
3535 checkIsClientReference = impl ;
3636}
3737
38+ export function registerClientReference < T > (
39+ clientReference : ClientReference < T > ,
40+ ) : void { }
41+
3842export function isClientReference ( reference : mixed ) : boolean {
3943 if ( checkIsClientReference == null ) {
4044 throw new Error ( 'Expected implementation for checkIsClientReference.' ) ;
@@ -58,6 +62,14 @@ export function resolveClientReferenceMetadata<T>(
5862 return { moduleId : clientReference . getModuleId ( ) , exportName : 'default '} ;
5963}
6064
65+ export function registerServerReference < T > (
66+ serverReference : ServerReference < T > ,
67+ id : string ,
68+ exportName : null | string ,
69+ ) : ServerReference < T > {
70+ throw new Error ( 'registerServerReference: Not Implemented.' ) ;
71+ }
72+
6173export function isServerReference < T > ( reference : T ) : boolean {
6274 throw new Error ( 'isServerReference: Not Implemented.' ) ;
6375}
You can’t perform that action at this time.
0 commit comments