@lightningtv/solid
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
import { Index, createEffect, createMemo, createSignal, Show, onCleanup, untrack, } from 'solid-js'; | ||
import { Index, createEffect, createMemo, createSignal, Show, untrack, } from 'solid-js'; | ||
import { Dynamic } from '@lightningtv/solid'; | ||
@@ -35,8 +35,9 @@ import { Row, Column } from '@lightningtv/solid/primitives'; | ||
setOffset((prev) => Math.min(prev + 1, maxOffset)); | ||
timeoutId = null; | ||
}, props.delay ?? 0); | ||
}; | ||
onCleanup(() => { | ||
if (timeoutId) | ||
clearTimeout(timeoutId); | ||
}); | ||
// Don't need to cleanup because unluckly the timeout didnt finish | ||
// onCleanup(() => { | ||
// if (timeoutId) clearTimeout(timeoutId); | ||
// }); | ||
return (<Show when={items().length > 0} fallback={props.fallback}> | ||
@@ -43,0 +44,0 @@ <Dynamic component={component} {...props} {...keyHandler(updateOffset)}> |
{ | ||
"name": "@lightningtv/solid", | ||
"version": "2.7.6-4", | ||
"version": "2.7.6", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
264565
0.06%3792
0.05%2
-33.33%