Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
const sheet = new ServerStyleSheet(); // <-- creating out stylesheet
const clientApp = (
);
try {
const content = await renderToStringWithData(clientApp);
const initialState = client.extract();
return {
head: Helmet.renderStatic(),
html: content,
apolloState: initialState,
sheet: sheet,
};
} catch (error) {
console.log("error :", error);
}
};
const sheet = new ServerStyleSheet(); // <-- creating out stylesheet
const clientApp = (
);
try {
const content = await renderToStringWithData(clientApp);
const initialState = client.extract();
return {
head: Helmet.renderStatic(),
html: content,
initialData: { ...initialData, initialProps },
apolloState: initialState,
sheet: sheet,
};
} catch (error) {
console.log("error :", error);
}
};