mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 21:57:18 +00:00
adding linted files and nvmrc -- will trigger precommit failures
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
ca80ab3b9e
commit
3f87db2eea
65 changed files with 1307 additions and 1137 deletions
|
|
@ -20,7 +20,7 @@ interface UseInfiniteScrollOptions {
|
|||
*/
|
||||
export function useInfiniteScroll(
|
||||
onLoadMore: (() => void) | undefined,
|
||||
options: UseInfiniteScrollOptions = {},
|
||||
options: UseInfiniteScrollOptions = {}
|
||||
) {
|
||||
const { enabled = true, threshold = 0.1, rootMargin = "100px" } = options;
|
||||
const sentinelRef = useRef<HTMLTableRowElement>(null);
|
||||
|
|
@ -29,7 +29,7 @@ export function useInfiniteScroll(
|
|||
if (!onLoadMore || !enabled) return;
|
||||
|
||||
const observer = new IntersectionObserver(
|
||||
(entries) => {
|
||||
entries => {
|
||||
const [entry] = entries;
|
||||
if (entry.isIntersecting) {
|
||||
onLoadMore();
|
||||
|
|
@ -38,7 +38,7 @@ export function useInfiniteScroll(
|
|||
{
|
||||
threshold,
|
||||
rootMargin,
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
const sentinel = sentinelRef.current;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue