seb
seb
Explore posts from servers
SSolidJS
Created by seb on 4/10/2024 in #support
Understanding Solid Reactivity Lint Error
oh that's brilliant, I wasn't aware of from. that works!
7 replies
SSolidJS
Created by seb on 4/10/2024 in #support
Understanding Solid Reactivity Lint Error
found the issue! https://playground.solidjs.com/anonymous/b7b46f20-69f9-4896-82ca-89b107aadea3 so it is the case that addListener behaves differently from addEventListener. I am just not certain whether I can safely eslint-ignore this one.
7 replies
SSolidJS
Created by seb on 4/10/2024 in #support
Understanding Solid Reactivity Lint Error
thank you, @peerreynders! that BroadcastChannel example was a great idea. I was wondering if maybe addEventListener was a special string that the linter looks for, but I'm also not seeing a lint error when I make this change to your code: https://playground.solidjs.com/anonymous/1ec3207d-67ef-40e6-935f-ae49d71742a7
const channel = {
addListener(eventName: string, handler: (args: any) => void) {},
removeListener(eventName: string, handler: (args: any) => void) {},
};
const channel = {
addListener(eventName: string, handler: (args: any) => void) {},
removeListener(eventName: string, handler: (args: any) => void) {},
};
7 replies
SSolidJS
Created by seb on 12/23/2022 in #support
Including solidjs router creates multiple instances of solid
I was using [email protected] and [email protected]. I've upgraded to [email protected], and that seems to have fixed the issue. Thank you!
5 replies