Replies: 1 comment 1 reply
-
At the moment, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a feature with a
@BindingState
property and an optional@PresentationState
property in itsState
. In the view of this feature, I only care about the@BindingState
property and about the non-nil-ness of the@PresentationState
property, but not about each change in it. When I try to create aViewState
where only the@BindingState
property and aBool
property namedpresentingChildView
exist and try to pass that to theobserve:
when creatingWithViewStore
, I get the following error when trying to call.binding
in the view:Now if I change the
case binding(BindingAction<State>)
to becase binding(BindingAction<ParentView.ViewState>)
, another error appears to the line of myBindingReducer()
:How can I deal with such a situation? How can I prevent my parent from recomputing for all changes of the child but also continue using binding on the parent?
Context: I'm on the
prerelease/1.0
branch, commit f2c6e5f, Xcode 13.2 beta 2Here's some sample code if the above wasn't clear enough:
Beta Was this translation helpful? Give feedback.
All reactions