aryzing
aryzing
Explore posts from servers
SSolidJS
Created by aryzing on 10/30/2024 in #support
Create resource TS types fail when using `{ refetching }`
Was able to fix it by explicitly setting the types,
createResource<
ConnectionState,
Network
>(/*...*/)
createResource<
ConnectionState,
Network
>(/*...*/)
2 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
Fixed it! Switched from synthetic events (on__) to native events (on:__)
39 replies
SSolidJS
Created by aryzing on 4/19/2024 in #support
How to deal with `on:event` in typescript?
I saw there's a section in the new docs for that, but why aren't the "standard" event handlers (like click, keydown etc.) supported by default?
2 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
Yeah, I'll add that to the docs and call it a day
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
Much appreciate your help @Brendonovich 🙏
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
Alright, maybe I have to look into that, although I'm leaning towards dropping Next.js support, b/c consumers need to be able to freely import the bundle on the browser
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
When the click handlers start to get added, that's when Solid.js generates side effect functions that then interfere with Next.js
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
When the component is simple, there are no issues
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
Yes, they are isolated, but the bundle contains those pesky ie() calls
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
Some users are rendering the web component using Next.js, which when rendering on the server errors out due to window being included
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
Next.js 😮‍💨
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
Great question!
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
I think so too 😅
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
I think it would be fair to say it's not a solid library, it's a lib that contains a web component that just happens to be built with Solid.js
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
correct
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
Essentially, the web component is packaged and ready to be included in any HTML doc without requiring external dependencies
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
I guess I was trying to provide a fully functional web component, hence it feels weird that consumers have to import solid -- they may not even be able to if they're in a pure web environement
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
Thanks for the recommendation!
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
The web component is available to consumers, as well as some types
39 replies
SSolidJS
Created by aryzing on 4/18/2024 in #support
Side effect in bundled code `ie(["click", "keydown"]);`
I believe the first (library) package has to contain some Solid.js code because I'm building a web component with Solid.js and solid-element (https://github.com/solidjs/solid/tree/main/packages/solid-element#readme)
39 replies