1import { useCallback } from 'react';
3import useDetailsStore from './useDetailsStore';
4import useRekeyDateStore from './useRekeyDateStore';
5import useControlledPointsStore from './useControlledPointsStore';
6import useEclipticOwnerStore from './useEclipticOwnerStore';
7import useResidents from './useResidentsStore';
9export default function usePointStore() {
10 const { syncDetails, ...details } = useDetailsStore();
11 const { syncRekeyDate, ...rekeyDates } = useRekeyDateStore();
15 } = useControlledPointsStore();
16 const { syncResidents, syncResidentCount, ...residents } = useResidents();
17 const ecliptic = useEclipticOwnerStore();
19 const syncDates = useCallback(
20 async point => Promise.all([syncRekeyDate(point)]),
24 const syncExtras = useCallback(
29 syncResidentCount(point),
31 [syncDates, syncDetails, 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