Skip to content

Commit

Permalink
remove three spots we were passing in placeholderData manually
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed Feb 28, 2024
1 parent f708a36 commit 150d0b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
6 changes: 1 addition & 5 deletions app/pages/project/instances/InstancesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ export function InstancesPage() {
)
)

const { Table, Column } = useQueryTable(
'instanceList',
{ query: projectSelector },
{ placeholderData: (x) => x }
)
const { Table, Column } = useQueryTable('instanceList', { query: projectSelector })

if (!instances) return null

Expand Down
2 changes: 1 addition & 1 deletion app/pages/system/inventory/SledsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SledsTab.loader = async () => {
}

export function SledsTab() {
const { Table, Column } = useQueryTable('sledList', {}, { placeholderData: (x) => x })
const { Table, Column } = useQueryTable('sledList', {})

return (
<>
Expand Down
9 changes: 4 additions & 5 deletions app/pages/system/inventory/sled/SledInstancesTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ SledInstancesTab.loader = async ({ params }: LoaderFunctionArgs) => {

export function SledInstancesTab() {
const { sledId } = useSledParams()
const { Table, Column } = useQueryTable(
'sledInstanceList',
{ path: { sledId }, query: { limit: 25 } },
{ placeholderData: (x) => x }
)
const { Table, Column } = useQueryTable('sledInstanceList', {
path: { sledId },
query: { limit: 25 },
})

const makeActions = (): MenuAction[] => []

Expand Down

0 comments on commit 150d0b5

Please sign in to comment.