-
Notifications
You must be signed in to change notification settings - Fork 23
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: crash when switching screens frequently #820
Conversation
Sample app builds 📱Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.
|
SDK binary size reports 📊SDK binary size of this PR
SDK binary size diff report between this PR and the main branch
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #820 +/- ##
==========================================
+ Coverage 63.68% 65.03% +1.35%
==========================================
Files 140 148 +8
Lines 5502 6127 +625
==========================================
+ Hits 3504 3985 +481
- Misses 1998 2142 +144 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this doesn't break any edge cases since it seems like previous action isn't fully completed before the next one is dispatched 😅 I ran some quick tests and everything looks good so far though. So looks good to me 👍🏻
I believe you are trying to say, that it won't wait for the first dispatcher to complete in case another dispatcher is launcher from a middleware, if so that should be perfectly alright, in android its working like that too and redux is supposed to work in that fashion as well. |
## [3.4.1](3.4.0...3.4.1) (2024-10-01) ### Bug Fixes * crash when switching screens frequently ([#820](#820)) ([62268a4](62268a4))
closes: https://linear.app/customerio/issue/MBL-573/in-app-message-delivery-issue
changes:
dispatcher
fromDigraph
we are accessing it very frequently when the screen changes very frequently, so instead of fetching/creating an instance every time, let's utilize the the instance provided by middleware.