Skip to content

Commit

Permalink
fix(llm): render camera feed right after granting access
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Dec 17, 2024
1 parent 713cbc8 commit c938063
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nine-toes-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": minor
---

Fix camera rendering right after granting access
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ const RequiresCameraPermissions: React.FC<Props> = ({

if (permission?.granted || (optimisticallyMountChildren && !firstAutomaticRequestCompleted))
return (
<CameraPermissionContext.Provider value={contextValue}>
<CameraPermissionContext.Provider
key={permission?.granted ? "granted" : "optimistic"}
value={contextValue}
>
{children}
</CameraPermissionContext.Provider>
);
Expand Down

0 comments on commit c938063

Please sign in to comment.