8000 Fix B2C UI memory leak by jhaven-stytch · Pull Request #303 · stytchauth/stytch-android · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix B2C UI memory leak #303

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

Merged
merged 1 commit into from
May 14, 2025
Merged

Fix B2C UI memory leak #303

merged 1 commit into from
May 14, 2025

Conversation

jhaven-stytch
Copy link
Contributor

Detected a potential memory leak in B2C prebuilt UI if launched multiple times. Instead of using the callback form for listening to user changes, instead collect changes with lifecycle awareness.

@jhaven-stytch jhaven-stytch requested a review from a team 8000 as a code owner May 14, 2025 18:35
@jhaven-stytch jhaven-stytch requested review from jbolduc-stytch and nidal-stytch and removed request for jbolduc-stytch May 14, 2025 18:35
@jhaven-stytch
Copy link
Contributor Author

Code Coverage

Overall Project 72.75% 🍏

There is no coverage information present for the Files changed

@jhaven-stytch jhaven-stytch merged commit 5d5928b into main May 14, 2025
3 of 4 checks passed
@jhaven-stytch jhaven-stytch deleted the jordan/b2c-ui-memory-leak branch May 14, 2025 19:03
jhaven-stytch added a commit that referenced this pull request May 15, 2025
* Update error types from API workflow (#298)

Co-authored-by: Stytch Codegen Bot <support@stytch.com>

* Update error types from API workflow (#299)

Co-authored-by: Stytch Codegen Bot <support@stytch.com>

* Update error types from API workflow (#300)

Co-authored-by: Stytch Codegen Bot <support@stytch.com>

* Update error types from API workflow (#301)

Co-authored-by: Stytch Codegen Bot <support@stytch.com>

* Fix B2C UI memory leak (#303)

* Add Biometrics To The Consumer Prebuilt UI (#302)

* WIP: initial pass, get flows working

* Revisions per designs

* Extract string resources

* Standardize option name with iOS

* Lint and update tests

* Fix ui test

* Update all string keys

---------

Co-authored-by: ci-stytch <72180218+ci-stytch@users.noreply.github.com>
Co-authored-by: Stytch Codegen Bot <support@stytch.com>
jhaven-stytch added 9D28 a commit that referenced this pull request May 16, 2025
* SDK-2657 Move all UI strings into string resources to prepare for BYOC (#296)

* Rename all b2c strings, extract some that are shared, add helper for style annotations in string resources and verify it works in b2c UI

* Extract all b2b ui strings from views (still need to figure out error messages)

* All hardcoded strings are now resources

* Update tests

* Run all tests on ALL PRs/pushes, not just to main

* Maybe a little overzealous

* Lint

* WIP: initial pass, get flows working

* Revisions per designs

* Extract string resources

* SDK-2658 Audit string keys for BYOC MVP (#306)

* Update error types from API workflow (#298)

Co-authored-by: Stytch Codegen Bot <support@stytch.com>

* Update error types from API workflow (#299)

Co-authored-by: Stytch Codegen Bot <support@stytch.com>

* Update error types from API workflow (#300)

Co-authored-by: Stytch Codegen Bot <support@stytch.com>

* Update error types from API workflow (#301)

Co-authored-by: Stytch Codegen Bot <support@stytch.com>

* Fix B2C UI memory leak (#303)

* Add Biometrics To The Consumer Prebuilt UI (#302)

* WIP: initial pass, get flows working

* Revisions per designs

* Extract string resources

* Standardize option name with iOS

* Lint and update tests

* Fix ui test

* Update all string keys

---------

Co-authored-by: ci-stytch <72180218+ci-stytch@users.noreply.github.com>
Co-authored-by: Stytch Codegen Bot <support@stytch.com>

* SDK-2660 Add localization instructions/readme (#309)

* Add localization instructions/readme

* Link to Localization from main README

* Update localization readme

* Version bump

---------

Co-authored-by: ci-stytch <72180218+ci-stytch@users.noreply.github.com>
Co-authored-by: Stytch Codegen Bot <support@stytch.com>
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
0