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