File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export async function renderServer(element: JSX.Element, options: RenderOptions
2121 container . innerHTML = renderToString ( element , serverOptions ) ;
2222
2323 // Find rendered modules
24- const modules = [ ... container . querySelectorAll < HTMLElement > ( selector ) ] ;
24+ const modules = Array . from ( container . querySelectorAll < HTMLElement > ( selector ) ) ;
2525 if ( ! modules . length ) {
2626 throw new Error ( `renderServer: No modules found: ${ selector } ` ) ;
2727 }
@@ -40,7 +40,7 @@ export async function renderClient(element: JSX.Element, options: RenderOptions
4040 const { container } = await act ( ( ) => render ( element , renderOptions ) ) ;
4141
4242 // Find rendered modules
43- const modules = [ ... container . querySelectorAll < HTMLElement > ( selector ) ] ;
43+ const modules = Array . from ( container . querySelectorAll < HTMLElement > ( selector ) ) ;
4444 if ( ! modules . length ) {
4545 throw new Error ( `renderClient: No modules found: ${ selector } ` ) ;
4646 }
You can’t perform that action at this time.
0 commit comments