Skip to content

Commit

Permalink
Fixing Memory Leak on Scope Child Reducer (#91)
Browse files Browse the repository at this point in the history
fixing put correct disposeBag for scope child reducer
  • Loading branch information
dikasetiadi authored May 19, 2023
1 parent e41f7b8 commit 030329c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/RxComposableArchitecture/Store.swift
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ extension ScopedReducer: AnyScopedReducer {
guard !reducer.isSending else { return }
childStore?.relay.accept(toRescopedState(newValue))
})
.disposed(by: store.disposeBag)
.disposed(by: childStore.disposeBag)
return childStore
}
}
Expand Down

0 comments on commit 030329c

Please sign in to comment.