-
TLDR Error: Error: Card.tsx:39 computations created outside a createRoot or render will never be disposed. Context: Im currently porting an old nextjs app to Solid. So i initiated that project used tanstack-router with solid. My data's host on hygraph so im using graphql tanstack-query/solid
I'm fetching the Product data in this components and passing it as props to my Product Card component ->
But i keep getting this error whenever i hover over the component I'm guessing its coming from Link component provided by tanstack-query/solid during prefetching? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Ah just realized this is simply a warning and not an error. So I'm guessing its fine? If solid can't dispose of the computations does that mean it'll result in a memory leak? |
Beta Was this translation helpful? Give feedback.
-
There is another issue. Your early return means your component will not update. Use |
Beta Was this translation helpful? Give feedback.
There is another issue. Your early return means your component will not update. Use
<Show>
instead ofif-return/return
.