MCPcopy
hub / github.com/fosrl/pangolin / refreshData

Function refreshData

src/components/OrgLabelsTable.tsx:68–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 const t = useTranslations();
67
68 function refreshData() {
69 startTransition(async () => {
70 try {
71 router.refresh();
72 } catch {
73 toast({
74 title: t("error"),
75 description: t("refreshError"),
76 variant: "destructive"
77 });
78 }
79 });
80 }
81
82 const handlePaginationChange = (newPage: PaginationState) => {
83 searchParams.set("page", (newPage.pageIndex + 1).toString());

Callers

nothing calls this directly

Calls 1

toastFunction · 0.90

Tested by

no test coverage detected