Skip to content

Commit

Permalink
feat: always hit the network for random queries
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrdd committed Mar 10, 2023
1 parent 1cc2e5e commit a667f4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions components/parcels/ParcelList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ export enum QuerySelection {
}

function ParcelList(props: ParcelListProps) {
const {
showParcelList,
handleCloseModal,
} = props;
const { showParcelList, handleCloseModal } = props;

const [querySelected, setQuerySelected] = useState<QuerySelection>(
QuerySelection.HIGHEST_VALUE
Expand Down
1 change: 1 addition & 0 deletions components/parcels/Random.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function Random(props: RandomProps) {
orderBy: "createdAtBlock",
orderDirection: "desc",
},
fetchPolicy: "network-only",
notifyOnNetworkStatusChange: true,
});

Expand Down

0 comments on commit a667f4d

Please sign in to comment.