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
@BindingStateproperty and an optional@PresentationStateproperty in itsState. In the view of this feature, I only care about the@BindingStateproperty and about the non-nil-ness of the@PresentationStateproperty, but not about each change in it. When I try to create aViewStatewhere only the@BindingStateproperty and aBoolproperty namedpresentingChildViewexist and try to pass that to theobserve:when creatingWithViewStore, I get the following error when trying to call.bindingin 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.0branch, 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