Skip to content

fix: Seed metering state from current device state#3979

Open
mrousavy wants to merge 1 commit into
mainfrom
fix/ios-metering-seed-current-state
Open

fix: Seed metering state from current device state#3979
mrousavy wants to merge 1 commit into
mainfrom
fix/ios-metering-seed-current-state

Conversation

@mrousavy

@mrousavy mrousavy commented Jun 1, 2026

Copy link
Copy Markdown
Owner

What

Seed each iOS MeteringTask state from the current AVCaptureDevice.isAdjusting... value immediately after installing the KVO observer.

Why

KVO is still used for transitions, but if AVFoundation decides no adjustment is needed and the isAdjusting... value remains false, there may be no transition to observe. Seeding the current value lets that no-op case enter the normal 120ms settled window instead of waiting until the hard timeout.

This PR is intentionally isolated from the observer-order, timeout, KVO queue, and cleanup PRs so CI behavior can be compared independently.

Validation

  • git diff --check

@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-vision-camera-docs Ready Ready Preview, Comment Jun 1, 2026 6:16pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant