solid-primitives icon indicating copy to clipboard operation
solid-primitives copied to clipboard

Remove Directive type from createInfiniteScroll

Open onx2 opened this issue 9 months ago • 8 comments

I'm getting an error in a project of mine which has a custom component. This component accepts a ref essentially as ref?: Ref<HTMLSpanElement> (other details omitted for brevity).

When consuming the component and passing in the loadingRef from this primitive I get this error

image

If I'm understanding the intent of the Directive return type here, it really is just a ref - this is correct? If this approach isn't preferred, does anyone have a suggestion on how I can accommodate for Directive and Ref?

onx2 avatar Apr 26 '24 03:04 onx2