@@ -20,38 +20,21 @@ export default function usePointStore() {
20 const { syncResidents, syncResidentCount, ...residents } = useResidents();
20 const { syncResidents, syncResidentCount, ...residents } = useResidents();
21 const ecliptic = useEclipticOwnerStore();
21 const ecliptic = useEclipticOwnerStore();
23− // sync all of the on-chain info required to display a known point
24− const syncKnownPoint = useCallback(
23+ const syncDates = useCallback(
25 async point => Promise.all([syncBirthday(point), syncRekeyDate(point)]),
24 async point => Promise.all([syncBirthday(point), syncRekeyDate(point)]),
26 [syncBirthday, syncRekeyDate]
25 [syncBirthday, syncRekeyDate]
29− // sync all of the on-chain info required to display a foreign point
28+ const syncExtras = useCallback(
30− const syncForeignPoint = useCallback(
37− // sync all of the on-chain info required for a point that the user owns
38− const syncOwnedPoint = useCallback(
39 async point =>
29 async point =>
40 Promise.all([
30 Promise.all([
41− syncForeignPoint(point),
31+ syncDetails(point),
42− syncKnownPoint(point),
44 syncResidentCount(point),
34 syncResidentCount(point),
46 syncInvites(point),
35 syncInvites(point),
53− syncResidentCount,
37+ [syncDates, syncDetails, syncInvites, syncResidentCount]
@@ -66,9 +49,8 @@ export default function usePointStore() {
66 syncRekeyDate,
49 syncRekeyDate,
67 syncInvites,
50 syncInvites,
68 syncControlledPoints,
51 syncControlledPoints,
69− syncKnownPoint,
52+ syncDates,
72 syncResidents,
53 syncResidents,