<Title> Component Throwing Error. Can you help?
I built an SEO component that simplifies adding SEO to pages.
Unfortunately, I'm now getting the following error on every page:
"seo.tsx:20 computations created outside a
createRoot
or render
will never be disposed"
The <Title>
component is causing the error.
Why?
Here's the full component for context:
5 Replies
what's on line 20
@REEEEE
This:
could be because of
brandName
where is that from? Is it just a constant?Yes, it is a constant.
I solved it. The `<Title> component didn't like the fact that there were two variables in separate curly braces.
This fixed it:
That's kinda odd