(storeOrStoreId: StoreOrStoreId | undefined)
| 22 | } from './common.tsx'; |
| 23 | |
| 24 | const useHasValueCallback = (storeOrStoreId: StoreOrStoreId | undefined) => { |
| 25 | const store = useStoreOrStoreById(storeOrStoreId); |
| 26 | return useCallback( |
| 27 | (valueId: Id) => store?.hasValue(valueId) ?? false, |
| 28 | [store], |
| 29 | ); |
| 30 | }; |
| 31 | |
| 32 | const AddValue = ({onDone, store}: OnDoneProp & ValuesProps) => { |
| 33 | const has = useHasValueCallback(store); |
no test coverage detected
searching dependent graphs…