Replies: 3 comments 7 replies
-
Both |
Beta Was this translation helpful? Give feedback.
-
@stephencelis I worry it won't because of the way |
Beta Was this translation helpful? Give feedback.
-
Just chiming in to say I ran into a similar experience after upgrading our app to TCA 0.58.2 (problem also exists on 1.2.0) and finishing migrating our app entirely over to the Reducer protocol. Specifically, after ruling out any issues with the size of our state or actions, I tracked a stack overflow down to a chain of 8 I tried creating a copy of the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Somewhere in the upgrade from 0.52.0 to 0.54.0 our app started crashing on device only with an EXC_BAD_ACCESS.
I initially posted about this in Slack here: https://pointfreecommunity.slack.com/archives/C04KQQ7NXHV/p1682538092501199
Note at that time I was able to fix the crash with a small change to the dependencies library, but that is no longer enough for our app.
Breaking our features into smaller private reducers fixes this crash. Like this:
I'm wondering/hoping there is a better pattern here. Something the library can do to make these types of crashes harder to hit. I cam up with this change to the
IfLetReducer
, which does fix our crash.With that change the size of our reducers
Body
types are greatly reduced, which I believe is what contributes to resolving the crash.Of note: We already make careful use of a property wrapper to ensure child features
State
is stored on the heap, preventing ourState
size from growing too large, which was an issue for us in the past.So I guess my questions are:
Beta Was this translation helpful? Give feedback.
All reactions