Reactant
Reactant copied to clipboard
Possible code duplication?
At ComponentDelegate.swift:84 we have this:
public weak var ownerComponent: COMPONENT? {
didSet {
needsUpdate = stateStorage != nil
}
}
If I understand the implementation correctly, we want to set needsUpdate to true if the component has a componentState, why isn't then this variable used?
public var hasComponentState: Bool {
return stateStorage != nil
}