solid-primitives
solid-primitives copied to clipboard
Remove Directive type from createInfiniteScroll
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
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
?