1import { useCallback } from 'react';
3import useDetailsStore from './useDetailsStore';
4import useRekeyDateStore from './useRekeyDateStore';
5import useInvitesStore from './useInvitesStore';
6import useControlledPointsStore from './useControlledPointsStore';
7import useEclipticOwnerStore from './useEclipticOwnerStore';
8import useResidents from './useResidentsStore';
10export default function usePointStore() {
11 const { syncDetails, ...details } = useDetailsStore();
12 const { syncRekeyDate, ...rekeyDates } = useRekeyDateStore();
13 const { syncInvites, ...invites } = useInvitesStore();
17 } = useControlledPointsStore();
18 const { syncResidents, syncResidentCount, ...residents } = useResidents();
19 const ecliptic = useEclipticOwnerStore();
21 const syncDates = useCallback(
22 async point => Promise.all([syncRekeyDate(point)]),
26 const syncExtras = useCallback(
32 syncResidentCount(point),
35 [syncDates, syncDetails, syncInvites, syncResidentCount]
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list