Skip to content

Commit

Permalink
move from usePrefetchedApiQuery to usePrefetchedQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
charliepark committed Dec 18, 2024
1 parent 4d90b79 commit f9ff4bc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/forms/floating-ip-edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
getListQFn,
queryClient,
useApiMutation,
usePrefetchedApiQuery,
usePrefetchedQuery,
} from '@oxide/api'

Expand Down Expand Up @@ -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()
)
Expand Down

0 comments on commit f9ff4bc

Please sign in to comment.