Skip to content

fix: lens player refresh launch data - #13

Merged
msilivonik-sc merged 4 commits into
mainfrom
codex/fix-lens-player-refresh-launch-data
Aug 5, 2026
Merged

fix: lens player refresh launch data#13
msilivonik-sc merged 4 commits into
mainfrom
codex/fix-lens-player-refresh-launch-data

Conversation

@msilivonik-sc

Copy link
Copy Markdown
Collaborator

Summary

Fixes LensPlayer refreshes so they reapply the lens using the latest launch data.

Previously, changing refreshTrigger called the imperative refreshLens() method, which could use launch data stored from an earlier application. This caused refreshed lenses to lose recently updated parameters, such as EasyLens block render order.

Changes

  • Pass refreshTrigger into useApplyLens.
  • Reapply the lens using the current lensId, lensGroupId, and lensLaunchData.
  • Avoid duplicate applications when launch data and refreshTrigger change together.
  • Automatically reinitialize Camera Kit when refresh is requested after a LensAbortError.
  • Do not reinitialize for unrelated bootstrap errors or unchanged refresh triggers.
  • Update tests and documentation for the declarative refresh behavior.

Testing

  • All 314 tests pass.
  • Typecheck passes.
  • Production build passes.
  • Formatting check passes.
  • Manually verified in Creator:
    • reorder EasyLens blocks;
    • click Refresh;
    • confirm the refreshed lens uses the latest block order.

@msilivonik-sc msilivonik-sc changed the title Codex/fix lens player refresh launch data fix: lens player refresh launch data Aug 4, 2026
@msilivonik-sc
msilivonik-sc merged commit 4dff308 into main Aug 5, 2026
1 check passed
@msilivonik-sc
msilivonik-sc deleted the codex/fix-lens-player-refresh-launch-data branch August 5, 2026 14:24
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