-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
When <Title> component children is not a single unit like <Title>{title()} | Brand</Title> it creates warning:
computations created outside a
createRootorrenderwill never be disposed
export default function About() {
const title = createMemo(() => "About");
return (
<main>
<Title>{title()} | Brand</Title>
<h1>About</h1>
<Counter />
</main>
);
}
Does not create warning:
export default function About() {
const title = createMemo(() => "About");
return (
<main>
<Title>{title() + " | Brand"}</Title>
<h1>About</h1>
<Counter />
</main>
);
}
For testing and example I used default "bare" project from npm create solid and happens when navigating away from page using it.
iksaku
Metadata
Metadata
Assignees
Labels
No labels