-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings.Action.binding actions are not being handled as expected #170
Comments
Hey @acosmicflamingo! The other common error is forgetting to embed the child Reducer that hosts the If we add: Scope(state: \.settings, action: /Action.settings) {
Settings()
} to The This is very likely an omission from the |
Hello there @tgrapperon ! Nice to meet you :) Thanks for the helpful info AND even creating a PR :D definitely makes sense. Since you say it's common, perhaps it'd be beneficial for this to be documented somewhere. So I created this PR: pointfreeco/swift-composable-architecture#1729 |
This was fixed awhile back, and we finally converted our old style of shared settings state to use a proper dependency here: #186. Thanks for filing the issue though! |
Describe the bug
It seems like many of the viewStore actions sent within views of the Settings module (e.g. SoundsSettingsView) do not actually do anything within the Settings reducer as I'd expect. Instead, I see in the debug console a message like this:
This is very strange because
BindingReducer()
is indeed within the Settings reducer body.To reproduce
If I compile isowords in Xcode, run the app, click on the settings button, select the sound button and try and change the value of any of the sound sliders, the sliders actually do not change value.
Expected behavior
I'd expect that the Settings reducer would actually stop at any of the breakpoints I set within it.
Screenshots/video
https://user-images.githubusercontent.com/67525430/206812842-45fda284-78ec-4908-8177-1ab66a1a5015.mov
Environment
Additional context
What is strange is that if I run "SettingsPreview", I do not see this problem.
The text was updated successfully, but these errors were encountered: