Skip to content

Commit

Permalink
Remove generics from store
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelesantos committed Oct 7, 2024
1 parent 10cba7b commit 91f00b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/RefdsRedux/RefdsReduxReducer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ public protocol RefdsReduxReducer {
func reduce<State>(
state: State,
action: RefdsReduxAction
) -> State
) -> RefdsReduxState
}
6 changes: 3 additions & 3 deletions Sources/RefdsRedux/RefdsReduxStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import Foundation
import SwiftUI

@MainActor
public class RefdsReduxStore<State>: ObservableObject {
@Published public var state: State
public class RefdsReduxStore: ObservableObject {
@Published public var state: RefdsReduxState
public let reducer: RefdsReduxReducer
public let middlewares: [RefdsReduxMiddleware]

public init(
state: State,
state: RefdsReduxState,
reducer: RefdsReduxReducer,
middlewares: [RefdsReduxMiddleware] = []
) {
Expand Down

0 comments on commit 91f00b0

Please sign in to comment.