From f9ff4bc4052bbc1872bc74f42d34630fe2e73d71 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Wed, 18 Dec 2024 15:30:36 -0800 Subject: [PATCH] move from usePrefetchedApiQuery to usePrefetchedQuery --- app/forms/floating-ip-edit.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/forms/floating-ip-edit.tsx b/app/forms/floating-ip-edit.tsx index 4515bec12..45de6143f 100644 --- a/app/forms/floating-ip-edit.tsx +++ b/app/forms/floating-ip-edit.tsx @@ -13,7 +13,6 @@ import { getListQFn, queryClient, useApiMutation, - usePrefetchedApiQuery, usePrefetchedQuery, } from '@oxide/api' @@ -52,11 +51,7 @@ export function EditFloatingIpSideModalForm() { const onDismiss = () => navigate(pb.floatingIps({ project: floatingIpSelector.project })) - const { data: floatingIp } = usePrefetchedApiQuery('floatingIpView', { - path: { floatingIp: floatingIpSelector.floatingIp }, - query: { project: floatingIpSelector.project }, - }) - + const { data: floatingIp } = usePrefetchedQuery(floatingIpView(floatingIpSelector)) const { data: instances } = usePrefetchedQuery( instanceList(floatingIpSelector.project).optionsFn() )