Skip to content

Commit

Permalink
fix datahookcontext
Browse files Browse the repository at this point in the history
  • Loading branch information
aeolianeth committed May 9, 2024
1 parent d97977d commit a2f48ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const JBDataHookProvider = ({
dataHookAddress,
},
} as JBDataHookContextData;
}, []);
}, [dataHookAddress]);

return (
<JBDataHookContext.Provider value={data}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ export function useFind721DataHook() {

const rulesetId = ruleset.data?.id;
const dataHookAddress = data?.dataHookAddress;
// console.log("useFind721DataHook::args", {
// projectId,
// rulesetId,
// dataHookAddress,
// publicClient,
// });

const jb721DataHookQuery = useQuery(
["dataHook", projectId, rulesetId, dataHookAddress],
Expand All @@ -26,6 +32,7 @@ export function useFind721DataHook() {
projectId,
rulesetId,
});
// console.log("useFind721DataHook::final jb721DataHook", jb721DataHook);

return jb721DataHook;
}
Expand Down

0 comments on commit a2f48ed

Please sign in to comment.