Experimental
const { called, data, error, loading, execute } = useLazyProfilesManaged();
const callback = async () => {
const result = await execute({
for: '0x1234567890123456789012345678901234567890',
});
if (result.isFailure()) {
toast.error(result.error.message);
return;
}
const profiles = result.value;
// do something with the profiles
}
useLazyProfilesManaged
is a lazy version of useProfilesManaged 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.