Experimental
const { called, data, error, loading, execute } = useLazyProfiles();
const callback = async () => {
const result = await execute({
where: {
profileIds: ['0x01', '0x02'],
},
});
if (result.isFailure()) {
toast.error(result.error.message);
return;
}
const profiles = result.value;
// do something with the profiles
}
useLazyProfiles
is a lazy version of useProfiles React Hook.This version doesn't support pagination!
This hook will not fetch profiles until the returned function is called.
This hook is experimental and may change in the future.