MCPcopy Create free account
hub / github.com/Tencent/CodeAnalysis / onChange

Function onChange

web/packages/shared/tdesign-component/table/index.tsx:24–30  ·  view source on GitHub ↗
(pageInfo: PageInfo)

Source from the content-addressed store, hash-verified

22 const history = useHistory();
23
24 const onChange = (pageInfo: PageInfo) => {
25 if (!pageInfo.pageSize) {
26 throw new Error('pageSize is undefined');
27 }
28 const url = getURLPathByFilterParams(filterFields, getPaginationParams(pageInfo.current, pageInfo.pageSize));
29 history.push(url);
30 };
31
32 return (
33 <PrimaryTable

Callers

nothing calls this directly

Calls 2

getURLPathByFilterParamsFunction · 0.90
getPaginationParamsFunction · 0.90

Tested by

no test coverage detected