Closed IvanMukticcc closed 1 month ago
Hi @IvanMukticcc, can you please provide a project that demonstrates the behavior? The code you provided has formatting problems.
Also it is not clear from your video what exactly is not working correctly. Can you please clearly state the steps to reproduce the problem, and describe precisely what the problem is.
Since it's not clear that this is a problem with the library I am going to convert it to a discussion. Please feel free to continue the conversation over there.
Description
I I have an iPad Split View with a list of items that trigger changes in an IfLetStore, and the state changes as expected. However, the child view inside the IfLetStore does not update accordingly.
Checklist
main
branch of this package.Expected behavior
When selecting a new store, both the store and its children should update.
Actual behavior
https://github.com/user-attachments/assets/fd8d27a8-898d-44fc-a4bd-7ae74f019382
Steps to reproduce
I made simple app to reproduce the bug, here is the code:
import ComposableArchitecture import SwiftUI
struct MainReducer: Reducer { struct State: Equatable { var firstChildState: FirstChildReducer.State? }
}
struct MainView: View { var store: StoreOf
}
struct FirstChildView: View { var store: StoreOf
}
struct FirstChildReducer: Reducer { struct State: Equatable, Identifiable { var id: UUID = .init() var number: Int
}
struct SecondChildView: View { var store: StoreOf
}
struct SecondChildReducer: Reducer { struct State: Equatable { var angle = 90.0 }
}
Preview {
}
The Composable Architecture version information
from: 1.5.0
Destination operating system
iOS 16.0
Xcode version information
15.2
Swift Compiler version information