Joshua
solid-router causes error: "cleanups created outside a `createRoot` or `render` will never be run"
Hi I am relatively new to solid so I could be making a simple mistake. I recently added solid router to my solid.js project and I am using the config based approach. Since I added the router and using it I get multiple errors like this:
- cleanups created outside a
createRoot
or render
will never be run
- computations created outside a createRoot
or render
will never be disposed
Since the router is actually rendered inside the render()
method of solid, I am not sure what I am doing wrong, any help how to fix the warnings would be appreciated. Below you can see my code (I also uploaded the full files because pasting entire code is higher than the discord message limit.
index.tsx
App.tsx
5 replies