Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PeekabooCameraState recreation when lambda onCapture does not memoized #75

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

SuLG-ik
Copy link
Contributor

@SuLG-ik SuLG-ik commented Mar 14, 2024

When during recomposition onCapture lambda is recreating, PeekabooCameraState is recreating too. There is bug with state's isCapturing, isCameraReady, cameraMode is set to default values after creating new PeekabooCameraState. Now onCapture does not affect state recreating, it sets as new onCapture callback in PeekabooCameraState.

P.S. fix in 0.5.0 - remember onCapture lambda.

@onseok onseok changed the title Fix PeekabooCameraState recreation when lambda onCapture does not memoizezed Fix PeekabooCameraState recreation when lambda onCapture does not memoized Mar 14, 2024
@onseok
Copy link
Owner

onseok commented Mar 14, 2024

LGTM 👍

@onseok onseok merged commit a9d355b into onseok:main Mar 14, 2024
2 checks passed
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.

2 participants