Skip to content

Commit

Permalink
fix: correct case for setLazyState method
Browse files Browse the repository at this point in the history
- from `setlazyState` to `setLazyState`
  • Loading branch information
redonearth committed Dec 12, 2024
1 parent 785633f commit 38a5943
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions components/doc/datatable/lazyloaddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function LazyLoadDoc(props) {
const [customers, setCustomers] = useState(null);
const [selectAll, setSelectAll] = useState(false);
const [selectedCustomers, setSelectedCustomers] = useState(null);
const [lazyState, setlazyState] = useState({
const [lazyState, setLazyState] = useState({
first: 0,
rows: 10,
page: 1,
Expand Down Expand Up @@ -52,16 +52,16 @@ export function LazyLoadDoc(props) {
};

const onPage = (event) => {
setlazyState(event);
setLazyState(event);
};

const onSort = (event) => {
setlazyState(event);
setLazyState(event);
};

const onFilter = (event) => {
event.first = 0;
setlazyState(event);
setLazyState(event);
};

const onSelectionChange = (event) => {
Expand Down Expand Up @@ -129,7 +129,7 @@ export default function LazyLoadDemo() {
const [customers, setCustomers] = useState(null);
const [selectAll, setSelectAll] = useState(false);
const [selectedCustomers, setSelectedCustomers] = useState(null);
const [lazyState, setlazyState] = useState({
const [lazyState, setLazyState] = useState({
first: 0,
rows: 10,
page: 1,
Expand Down Expand Up @@ -167,16 +167,16 @@ export default function LazyLoadDemo() {
};
const onPage = (event) => {
setlazyState(event);
setLazyState(event);
};
const onSort = (event) => {
setlazyState(event);
setLazyState(event);
};
const onFilter = (event) => {
event['first'] = 0;
setlazyState(event);
setLazyState(event);
};
const onSelectionChange = (event) => {
Expand Down Expand Up @@ -280,7 +280,7 @@ export default function LazyLoadDemo() {
const [customers, setCustomers] = useState<Customer[] | null>(null);
const [selectAll, setSelectAll] = useState<boolean>(false);
const [selectedCustomers, setSelectedCustomers] = useState<Customer[] | null>(null);
const [lazyState, setlazyState] = useState<LazyTableState>({
const [lazyState, setLazyState] = useState<LazyTableState>({
first: 0,
rows: 10,
page: 1,
Expand Down Expand Up @@ -318,16 +318,16 @@ export default function LazyLoadDemo() {
};
const onPage = (event: DataTablePageEvent) => {
setlazyState(event);
setLazyState(event);
};
const onSort = (event: DataTableSortEvent) => {
setlazyState(event);
setLazyState(event);
};
const onFilter = (event: DataTableFilterEvent) => {
event['first'] = 0;
setlazyState(event);
setLazyState(event);
};
const onSelectionChange = (event: DataTableSelectionChangeEvent) => {
Expand Down

0 comments on commit 38a5943

Please sign in to comment.