@af-utils/react-virtual-headless
Advanced tools
Comparing version 0.0.45 to 0.0.46
@@ -1,4 +0,4 @@ | ||
export const raw = 8183; | ||
export const min = 4646; | ||
export const minGz = 2095; | ||
export const minBrotli = 1897; | ||
export const raw = 8197; | ||
export const min = 4653; | ||
export const minGz = 2100; | ||
export const minBrotli = 1900; |
@@ -1,2 +0,2 @@ | ||
import { useRef as t, useEffect as s, useLayoutEffect as i, useCallback as h } from "react"; | ||
import { useRef as t, useEffect as s, useLayoutEffect as i, useMemo as h } from "react"; | ||
@@ -183,4 +183,4 @@ import { useSyncExternalStore as e } from "use-sync-external-store/shim"; | ||
// szudzik pair | ||
const i = () => s.reduce(((s, i) => s + "_" + (0 === i ? t.to ** 2 + t.from : 1 === i ? t.scrollSize : t.sizesHash)), ""); | ||
e(h((i => t.on(i, s)), [ s ]), i, i); | ||
const [i, o] = h((() => [ i => t.on(i, s), () => s.reduce(((s, i) => s + "_" + (0 === i ? t.to ** 2 + t.from : 1 === i ? t.scrollSize : t.sizesHash)), "") ]), [ s ]); | ||
e(i, o, o); | ||
}, T = t => (y(t.model, t.events), t.children()); | ||
@@ -187,0 +187,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { useRef as t, useEffect as s, useLayoutEffect as i, useCallback as h } from "react"; | ||
import { useRef as t, useEffect as s, useLayoutEffect as i, useMemo as h } from "react"; | ||
@@ -187,6 +187,6 @@ import { useSyncExternalStore as e } from "use-sync-external-store/shim"; | ||
// szudzik pair | ||
const i = () => s.reduce(((s, i) => s + "_" + (0 === i ? t.to ** 2 + t.from : 1 === i ? t.scrollSize : t.sizesHash)), ""); | ||
e(h((i => t.on(i, s)), [ s ]), i, i); | ||
const [i, o] = h((() => [ i => t.on(i, s), () => s.reduce(((s, i) => s + "_" + (0 === i ? t.to ** 2 + t.from : 1 === i ? t.scrollSize : t.sizesHash)), "") ]), [ s ]); | ||
e(i, o, o); | ||
}, T = t => (y(t.model, t.events), t.children()); | ||
export { l as EVT_ALL, r as EVT_RANGE, n as EVT_SCROLL_SIZE, c as EVT_SIZES, T as Subscription, o as mapVisibleRange, y as useComponentSubscription, b as useSubscription, S as useVirtual, M as useVirtualModel }; |
{ | ||
"name": "@af-utils/react-virtual-headless", | ||
"private": false, | ||
"version": "0.0.45", | ||
"version": "0.0.46", | ||
"description": "React components for rendering large scrollable data", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/nowaalex/af-virtual-scroll.git", |
Sorry, the diff of this file is not supported yet
47707