From 9d6f3ab0d3df827c87c406a0f99325ffd9bf74e4 Mon Sep 17 00:00:00 2001 From: Andrew Chou Date: Tue, 3 Dec 2024 16:22:51 +0000 Subject: [PATCH] add deprecation annotation to old useDraftObservation() --- src/frontend/hooks/useDraftObservation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/hooks/useDraftObservation.ts b/src/frontend/hooks/useDraftObservation.ts index fb15ef035..74cf49099 100644 --- a/src/frontend/hooks/useDraftObservation.ts +++ b/src/frontend/hooks/useDraftObservation.ts @@ -15,6 +15,9 @@ import * as Sentry from '@sentry/react-native'; // draft observation have 2 parts: // 1. All the information, except processed photos are saved to persisted state. // 2. Photos are processed (to be turned into a useable format by mapeo) async. Since promises cannot be stored in persisted storage, we hold those in a context. Once those photos are processed we save them to persisted state. +/** + * @deprecated Use hooks from [draftObservation.ts](./draftObservation.ts) + */ export const useDraftObservation = () => { const {addPhotoPromise, cancelPhotoProcessing, deletePhotoPromise} = usePhotoPromiseContext();