UNPKG

@macalinao/grill

Version:

Modern Solana development kit for React applications with automatic account batching, caching, and transaction notifications

15 lines 502 B
import { useAccount } from "./use-account.js"; /** * Generic helper to create a hook for fetching and decoding accounts * @param decoder - The decoder to use for the account data * @returns A hook function that fetches and decodes the account */ export function createDecodedAccountHook(decoder) { return function useDecodedAccount({ address, }) { return useAccount({ address, decoder, }); }; } //# sourceMappingURL=create-decoded-account-hook.js.map