fix: disable client-side <Head>component until perf issue is fixed (#3255)
Need to look at it in more detail tomorrow.
This commit is contained in:
@@ -37,6 +37,8 @@ options.vnode = (vnode) => {
|
||||
case "base":
|
||||
case "noscript":
|
||||
case "template":
|
||||
// deno-lint-ignore no-constant-condition
|
||||
if (false) {
|
||||
// deno-lint-ignore no-explicit-any
|
||||
vnode.type = (props: any) => {
|
||||
useEffect(() => {
|
||||
@@ -72,7 +74,7 @@ options.vnode = (vnode) => {
|
||||
}
|
||||
|
||||
if (matched === null) {
|
||||
matched = document.createElement(originalType);
|
||||
matched = document.createElement(originalType as string);
|
||||
}
|
||||
|
||||
if (matched.textContent !== text) {
|
||||
@@ -84,6 +86,7 @@ options.vnode = (vnode) => {
|
||||
|
||||
return null;
|
||||
};
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -152,6 +152,7 @@ Deno.test("Head - ssr - merge keyed", async () => {
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
ignore: true, // Temporarily until client perf is fixed
|
||||
name: "Head - client - set title",
|
||||
fn: async () => {
|
||||
const applyCache = await buildProd({
|
||||
@@ -181,6 +182,7 @@ Deno.test({
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
ignore: true, // Temporarily until client perf is fixed
|
||||
name: "Head - client - match meta",
|
||||
fn: async () => {
|
||||
const applyCache = await buildProd({
|
||||
@@ -225,6 +227,7 @@ Deno.test({
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
ignore: true, // Temporarily until client perf is fixed
|
||||
name: "Head - client - match style by id",
|
||||
fn: async () => {
|
||||
const applyCache = await buildProd({
|
||||
@@ -269,6 +272,7 @@ Deno.test({
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
ignore: true, // Temporarily until client perf is fixed
|
||||
name: "Head - client - match key",
|
||||
fn: async () => {
|
||||
const applyCache = await buildProd({
|
||||
|
||||
Reference in New Issue
Block a user