Skip to content

Commit

Permalink
feat: update re-fetch wells on create
Browse files Browse the repository at this point in the history
  • Loading branch information
Space-Bean committed Sep 11, 2024
1 parent 2efb4fc commit e14f991
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/dex-ui/src/components/Create/CreateWellProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Pump, WellFunction } from "@beanstalk/sdk-wells";

import { clearWellsCache } from "src/state/providers/WellsProvider";
import { Log } from "src/utils/logger";
import { queryKeys } from "src/utils/query/queryKeys";
import { useFetchChainScopedQueryData } from "src/utils/query/useChainScopedQuery";
import useSdk from "src/utils/sdk/useSdk";
import { useAquifer } from "src/wells/aquifer/aquifer";
Expand Down Expand Up @@ -261,7 +262,7 @@ export const CreateWellProvider = ({ children }: { children: React.ReactNode })
);

clearWellsCache();
fetchScopedQueryData(["wells", sdk]);
fetchScopedQueryData(queryKeys.wells(sdk));

Log.module("wellDeployer").debug("Well deployed at address: ", wellAddress || "");
setDeploying(false);
Expand Down

0 comments on commit e14f991

Please sign in to comment.