Skip to content

fix(iOS,Paper): fix false-negative lookup result for parent view from content wrapper#2719

Merged
kkafar merged 3 commits intomainfrom
@kkafar/content-wrapper-not-under-screen
Feb 20, 2025
Merged

fix(iOS,Paper): fix false-negative lookup result for parent view from content wrapper#2719
kkafar merged 3 commits intomainfrom
@kkafar/content-wrapper-not-under-screen

Conversation

@kkafar
Copy link
Copy Markdown
Member

@kkafar kkafar commented Feb 20, 2025

Description

Closes #2717

For some reason on old architecture, when calling navigation.replace() the replaced screen receives willMoveToWindow: message from UIKit with
non-nil argument, defying my previous expectations.

On new architecture this works as expected: removed screen receives nil window & we do not run the content-wrapper-attachment logic.

Changes

Error is logged only on new architecture now.

Test code and steps to reproduce

WIP

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

@kkafar kkafar merged commit df7a7d1 into main Feb 20, 2025
@kkafar kkafar deleted the @kkafar/content-wrapper-not-under-screen branch February 20, 2025 11:58
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.

Failed to find parent screen controller

1 participant