Skip to content

Commit 3271771

Browse files
committed
trying fix static SSR
1 parent ed5af7a commit 3271771

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/front/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ const renderApp = RootComponent => {
5151
</AppContainer>
5252
);
5353

54-
// // needed for react-snap:
55-
// if (bootstrapedElement.hasChildNodes()) {
56-
// return hydrate(<Application />, bootstrapedElement);
57-
// }
54+
// needed for react-snap:
55+
if (bootstrapedElement.hasChildNodes()) {
56+
return hydrate(<Application />, bootstrapedElement);
57+
}
5858

5959
return root.render(<Application />);
6060
};

0 commit comments

Comments
 (0)