wrapped proxy calls via useWidgetAPI
This commit is contained in:
1 parent
649f0038bc
commit
0a58f259ff
30 files changed
+115
-153
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import useSWR from "swr";
|
||||
|
||||
import { formatProxyUrl } from "./api-helpers";
|
||||
|
||||
export default function useWidgetAPI(widget, ...options) {
|
||||
return useSWR(formatProxyUrl(widget, ...options));
|
||||
}
|
||||
Reference in new issue
Block a user