@@ -64,6 +64,7 @@ mod feat_ssr_hydration {
64
64
/// This indicates a kind that can be collected from fragment to be processed at a later time
65
65
pub enum Collectable {
66
66
Component ( ComponentName ) ,
67
+ Raw ,
67
68
Suspense ,
68
69
}
69
70
@@ -79,20 +80,23 @@ mod feat_ssr_hydration {
79
80
pub fn open_start_mark ( & self ) -> & ' static str {
80
81
match self {
81
82
Self :: Component ( _) => "<[" ,
83
+ Self :: Raw => "<#" ,
82
84
Self :: Suspense => "<?" ,
83
85
}
84
86
}
85
87
86
88
pub fn close_start_mark ( & self ) -> & ' static str {
87
89
match self {
88
90
Self :: Component ( _) => "</[" ,
91
+ Self :: Raw => "</#" ,
89
92
Self :: Suspense => "</?" ,
90
93
}
91
94
}
92
95
93
96
pub fn end_mark ( & self ) -> & ' static str {
94
97
match self {
95
98
Self :: Component ( _) => "]>" ,
99
+ Self :: Raw => "#>" ,
96
100
Self :: Suspense => ">" ,
97
101
}
98
102
}
@@ -104,6 +108,7 @@ mod feat_ssr_hydration {
104
108
Self :: Component ( m) => format ! ( "Component({m})" ) . into ( ) ,
105
109
#[ cfg( not( debug_assertions) ) ]
106
110
Self :: Component ( _) => "Component" . into ( ) ,
111
+ Self :: Raw => "Raw" . into ( ) ,
107
112
Self :: Suspense => "Suspense" . into ( ) ,
108
113
}
109
114
}
@@ -130,6 +135,7 @@ mod feat_ssr {
130
135
Self :: Component ( type_name) => {
131
136
let _ = w. write_str ( type_name) ;
132
137
}
138
+ Self :: Raw => { }
133
139
Self :: Suspense => { }
134
140
}
135
141
@@ -146,6 +152,7 @@ mod feat_ssr {
146
152
Self :: Component ( type_name) => {
147
153
let _ = w. write_str ( type_name) ;
148
154
}
155
+ Self :: Raw => { }
149
156
Self :: Suspense => { }
150
157
}
151
158
0 commit comments