@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
15 lines • 471 B
JavaScript
import { useEffect } from "react";
import { useBridgeSync } from "./context";
export const SyncOneAccountOnMount = ({ priority, accountId, reason = "one-account", }) => {
const sync = useBridgeSync();
useEffect(() => {
sync({
type: "SYNC_ONE_ACCOUNT",
priority,
accountId,
reason,
});
}, [sync, priority, accountId, reason]);
return null;
};
//# sourceMappingURL=SyncOneAccountOnMount.js.map