Skip to content

WMSDK-569: getContext from ReactHost in ActivityCreated callback#135

Merged
sergeysozinov merged 1 commit into
developfrom
feature/WMSDK-569
Dec 5, 2025
Merged

WMSDK-569: getContext from ReactHost in ActivityCreated callback#135
sergeysozinov merged 1 commit into
developfrom
feature/WMSDK-569

Conversation

@sergeysozinov
Copy link
Copy Markdown
Collaborator

@sergeysozinov sergeysozinov requested a review from enotniy December 5, 2025 06:29
Mindbox.writeLog("[RN] ReactContext already available; skipping listener registration ", Level.INFO)
return
}
val hasConsumedReactContext = AtomicBoolean(false)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а тут не надо вынести в поле класса?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не, как раз хорошо оставить локально в onActivityCreated
Она нужна только здесь

И при пересоздании активити она сбросится, а если делать в классе - придется руками сбрасывать

@sergeysozinov sergeysozinov merged commit 638b0ac into develop Dec 5, 2025
7 checks passed
@sergeysozinov sergeysozinov deleted the feature/WMSDK-569 branch December 5, 2025 08: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