@@ -20,38 +20,22 @@ 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
23+ //TODO more appropriately named "syncDates" or similar
24 const syncKnownPoint = useCallback(
24 const syncKnownPoint = useCallback(
25 async point => Promise.all([syncBirthday(point), syncRekeyDate(point)]),
25 async point => Promise.all([syncBirthday(point), syncRekeyDate(point)]),
26 [syncBirthday, syncRekeyDate]
26 [syncBirthday, syncRekeyDate]
29− // sync all of the on-chain info required to display a foreign point
29+ 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 =>
30 async point =>
40 Promise.all([
31 Promise.all([
41− syncForeignPoint(point),
42 syncKnownPoint(point),
32 syncKnownPoint(point),
44 syncResidentCount(point),
34 syncResidentCount(point),
45 syncDetails(point),
35 syncDetails(point),
46 syncInvites(point),
36 syncInvites(point),
53− syncResidentCount,
38+ [syncKnownPoint, syncDetails, syncInvites, syncResidentCount]
@@ -67,8 +51,7 @@ export default function usePointStore() {
67 syncInvites,
51 syncInvites,
68 syncControlledPoints,
52 syncControlledPoints,
69 syncKnownPoint,
53 syncKnownPoint,
72 syncResidents,
54 syncResidents,