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
TtRPC
Created by seb on 6/17/2023 in #❓-help
Streaming responses (eg. for streaming ai chat completion text)
Glad to have found that it looks like others are thinking about this feature as well: - https://github.com/trpc/trpc/pull/4530 - https://github.com/trpc/trpc/pull/4489 - https://github.com/trpc/trpc/issues/4477 Seems like the best option for now is to stream such responses outside of tRPC while waiting for one of those PRs to land. But if there are any better workarounds for now, do let me know!
3 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