Skip to content

Commit

Permalink
add deprecation annotation to old useDraftObservation()
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Dec 3, 2024
1 parent 4417065 commit 9d6f3ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frontend/hooks/useDraftObservation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9d6f3ab

Please sign in to comment.