Dynamic meta - computations outside createRoot warning
Navigating from a blog page ([slug].tsx) to the blog index/list page shows the
computations created outside a
createRoot or
render will never be disposed
warning.
Here is the snippet of the line referenced from the browser:
And the [slug].tsx is here:
What could be wrong and where should I look?2 Replies
The code you show doesn't seem to create any computation outside reactive scope, so it's probably inside one of your functions
Title
or getBlog
(which is related to blog()?.title
part)@Maciek50322 Thank you for helping out.
getBlog
is thequery
in the [slug].tsx route to handle backend fetching of the blog with the slug string. <Title>
is from @solidjs/meta.
So I'm kinda surprised with the warning.