Skip to content

Commit

Permalink
Merge pull request #572 from icflorescu/next
Browse files Browse the repository at this point in the history
Fix typo when importing useDebouncedCallback from @mantine/hooks
  • Loading branch information
icflorescu authored Apr 12, 2024
2 parents 532d226 + 50ff81b commit d3860a2
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 131 deletions.
4 changes: 2 additions & 2 deletions package/DataTable.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box, Table, type MantineSize } from '@mantine/core';
import { useDebounceCallback, useMergedRef } from '@mantine/hooks';
import { useDebouncedCallback, useMergedRef } from '@mantine/hooks';
import clsx from 'clsx';
import { useCallback, useMemo, useState } from 'react';
import { DataTableColumnsProvider } from './DataTableDragToggleProvider';
Expand Down Expand Up @@ -205,7 +205,7 @@ export function DataTable<T>({

useIsomorphicLayoutEffect(processScrolling, [processScrolling]);

const debouncedProcessScrolling = useDebounceCallback(processScrolling, 50);
const debouncedProcessScrolling = useDebouncedCallback(processScrolling, 50);

const handleScrollPositionChange = useCallback(
(e: { x: number; y: number }) => {
Expand Down
Loading

0 comments on commit d3860a2

Please sign in to comment.