Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryu0118 committed Oct 16, 2023
1 parent bd1010d commit be62d4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/SimplexArchitecture/StateContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public final class StateContainer<Target: ActionSendable> {
@TestOnly var viewState: Target.ViewState?

var _reducerState: Target.Reducer.ReducerState?

@usableFromInline
var entity: Target

init(
Expand Down
1 change: 1 addition & 0 deletions Sources/SimplexArchitecture/Store/Store.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public final class Store<Reducer: ReducerProtocol> {
viewState: Reducer.Target.ViewState? = nil
) -> StateContainer<Reducer.Target> {
if let container {
container.entity = target
return container
} else {
let container = getContainer(for: target, viewState: viewState)
Expand Down

0 comments on commit be62d4f

Please sign in to comment.