UNPKG

@ledgerhq/coin-tron

Version:
18 lines 626 B
import { getTronSuperRepresentatives, hydrateSuperRepresentatives } from "../network"; export const preload = async () => { const superRepresentatives = await getTronSuperRepresentatives(); return { superRepresentatives, }; }; export const hydrate = (data) => { if (!data || !data.superRepresentatives) return; const { superRepresentatives } = data; if (!superRepresentatives || typeof superRepresentatives !== "object" || !Array.isArray(superRepresentatives)) return; hydrateSuperRepresentatives(superRepresentatives); }; //# sourceMappingURL=preload.js.map