ionic-team / ionic-team/tutorial-photo-gallery-react

Have to use try catch block when calling takePhoto function

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
92
Forks
86
Avg merge
9h 12m
Merged PRs (30d)
10

Description

When a user opens camera but closes it by the top left X button, it throws `Error: User cancelled photos app` and crashes the PWA app.
This takePhoto function have to use a try catch.
https://github.com/ionic-team/tutorial-photo-gallery-react/blob/b02f8eca21ead4e704226af97384e67b60f47806/src/hooks/usePhotoGallery.ts#L36

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.