You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everytime an action is executed, a new AnyCancellable is stored in the cancellables of the Reactor. This can lead to evergrowing memory usage. (10k actions lead to ~3.6 MB increased memory usage), see here
Everytime an action is executed, a new
AnyCancellable
is stored in thecancellable
s of theReactor
. This can lead to evergrowing memory usage. (10k actions lead to ~3.6 MB increased memory usage), see hereFor reference: ReactorKit creates the state stream only once and uses a custom observable type that takes actions.
The ReactorKit approach would solve the described issue for the SwiftUIReactor framework.
Example test showing increasing memory consumption:
The code for
getMegabytesUsed()
is taken from the Apple Developer Forums.The text was updated successfully, but these errors were encountered: