seb
Explore posts from serversUnderstanding Solid Reactivity Lint Error
In the following component I get this lint warning:
But I am using it inside of an event handler function. Is this a misunderstanding on my part of how reactivity works or does the linter just not recognize that the
chrome.runtime.onMessage
global used by Chrome extensions can register event listeners? Here's a stripped down example of my code:
If this code is incorrect, what's the right way to handle it?7 replies
Including solidjs router creates multiple instances of solid
I'm trying to add
@solidjs/router
to a project. But as soon as I import it and add the minimal setup, I get the following warning in my browser console:
Removing @solidjs/router
resolves the issue.
My imports look like this:
I had a hunch it was a peer-dependency issue, since @solidjs/router
specifies [email protected]
while I had [email protected]
installed, but downgrading to 1.5.3 didn't end up fixing this issue.
Also relevant to note that I'm using vite with vite-plugin-solid and pnpm.
Any idea what I could be doing wrong here?5 replies