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

Function refreshData

src/components/UsersTable.tsx:136–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 }
135
136 const refreshData = async () => {
137 startTransition(async () => {
138 try {
139 await new Promise((resolve) => setTimeout(resolve, 200));
140 router.refresh();
141 } catch (error) {
142 toast({
143 title: t("error"),
144 description: t("refreshError"),
145 variant: "destructive"
146 });
147 }
148 });
149 };
150
151 const columns: ExtendedColumnDef<UserRow>[] = [
152 {

Callers

nothing calls this directly

Calls 1

toastFunction · 0.90

Tested by

no test coverage detected