DaniGuardiola
DaniGuardiola
SSolidJS
Created by DaniGuardiola on 11/29/2023 in #support
Iterate Set with For?
anyway thanks for the insight 👍
4 replies
SSolidJS
Created by DaniGuardiola on 11/29/2023 in #support
Iterate Set with For?
hmm I'm worried about deops
4 replies
SSolidJS
Created by flashblaze on 12/11/2022 in #support
Property 'giscus-widget' does not exist on type 'JSX.IntrinsicElements'
I think I'll just copy the component code into my project, but it'd be awesome to make this work properly, I'll see if I can investigate how that could be achieved
15 replies
SSolidJS
Created by flashblaze on 12/11/2022 in #support
Property 'giscus-widget' does not exist on type 'JSX.IntrinsicElements'
Uh, this loads a whole another solid into the page 😦
15 replies
SSolidJS
Created by flashblaze on 12/11/2022 in #support
Property 'giscus-widget' does not exist on type 'JSX.IntrinsicElements'
ended up building this wrapper as a hack:
import { createSignal, type JSX, onMount, Show, Suspense } from "solid-js";

type ClientDeferredProps = {
LazyComponent: () => JSX.Element;
};

export function ClientDeferred(props: ClientDeferredProps) {
const [show, setShow] = createSignal(false);

onMount(() => {
setShow(true);
});

return (
<Show when={show()} fallback={null}>
<Suspense fallback={null}>
<props.LazyComponent />
</Suspense>
</Show>
);
}
import { createSignal, type JSX, onMount, Show, Suspense } from "solid-js";

type ClientDeferredProps = {
LazyComponent: () => JSX.Element;
};

export function ClientDeferred(props: ClientDeferredProps) {
const [show, setShow] = createSignal(false);

onMount(() => {
setShow(true);
});

return (
<Show when={show()} fallback={null}>
<Suspense fallback={null}>
<props.LazyComponent />
</Suspense>
</Show>
);
}
15 replies
SSolidJS
Created by flashblaze on 12/11/2022 in #support
Property 'giscus-widget' does not exist on type 'JSX.IntrinsicElements'
I see, think I should maybe load lazily?
15 replies
SSolidJS
Created by flashblaze on 12/11/2022 in #support
Property 'giscus-widget' does not exist on type 'JSX.IntrinsicElements'
Where v seems to be the require'd solid-js/web package
15 replies
SSolidJS
Created by flashblaze on 12/11/2022 in #support
Property 'giscus-widget' does not exist on type 'JSX.IntrinsicElements'
For context, I'm trying to use it in a Solid Start project, and getting the error v.template is not a function
15 replies
SSolidJS
Created by flashblaze on 12/11/2022 in #support
Property 'giscus-widget' does not exist on type 'JSX.IntrinsicElements'
Hey @pcblazef, sorry for reviving this old thread but I'm trying to use your component and I'm running into issues
15 replies