@lightningtv/solid
Advanced tools
Comparing version
@@ -9,3 +9,3 @@ import { type JSX, type ValidComponent } from 'solid-js'; | ||
delay?: number; | ||
async?: boolean; | ||
sync?: boolean; | ||
children: (item: T[number], index: number) => U; | ||
@@ -12,0 +12,0 @@ }; |
@@ -5,6 +5,6 @@ import { Index, createEffect, createMemo, createSignal, Show, onCleanup, untrack, } from 'solid-js'; | ||
function createLazy(component, props, keyHandler) { | ||
const [offset, setOffset] = createSignal(0); | ||
const [offset, setOffset] = createSignal(props.upCount || 1); | ||
let timeoutId = null; | ||
createEffect(() => setOffset(props.selected || 0)); | ||
if (props.async) { | ||
if (!props.sync && props.async !== false) { | ||
createEffect(() => { | ||
@@ -11,0 +11,0 @@ if (props.each) { |
{ | ||
"name": "@lightningtv/solid", | ||
"version": "2.7.6-1", | ||
"version": "2.7.6-2", | ||
"description": "Lightning Renderer for Solid Universal", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
264347
0.05%