Skip to content

Commit

Permalink
change initialData to placeholderData
Browse files Browse the repository at this point in the history
  • Loading branch information
its-felix committed Aug 26, 2024
1 parent 49b87f1 commit 4feff3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/util/state/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function useAirports() {
return body;
},
retry: 5,
initialData: {
placeholderData: {
airports: [],
metropolitanAreas: [],
},
Expand All @@ -29,7 +29,7 @@ export function useAircraft() {
return body;
},
retry: 5,
initialData: [],
placeholderData: [],
staleTime: 1000 * 60 * 15,
});
}
Expand Down

0 comments on commit 4feff3d

Please sign in to comment.