File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
packages/react-noop-renderer/src Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,18 @@ const ReactNoopServer = ReactFizzServer({
98
98
return null ;
99
99
} ,
100
100
101
- pushTextInstance ( target : Array < Uint8Array > , text : string ) : void {
101
+ pushTextInstance (
102
+ target : Array < Uint8Array > ,
103
+ text : string ,
104
+ responseState : ResponseState ,
105
+ textEmbedded : boolean ,
106
+ ) : boolean {
102
107
const textInstance : TextInstance = {
103
108
text,
104
109
hidden : false ,
105
110
} ;
106
111
target . push ( Buffer . from ( JSON . stringify ( textInstance ) , 'utf8' ) , POP ) ;
112
+ return false ;
107
113
} ,
108
114
pushStartInstance (
109
115
target : Array < Uint8Array > ,
@@ -128,7 +134,13 @@ const ReactNoopServer = ReactFizzServer({
128
134
target. push ( POP ) ;
129
135
} ,
130
136
131
- pushSegmentFinale ( ) { } ,
137
+ // This is a noop in ReactNoop
138
+ pushSegmentFinale (
139
+ target : Array < Uint8Array > ,
140
+ responseState : ResponseState ,
141
+ lastPushedText : boolean ,
142
+ textEmbedded : boolean ,
143
+ ) : void { } ,
132
144
133
145
writeCompletedRoot (
134
146
destination : Destination ,
You can’t perform that action at this time.
0 commit comments