Skip to content
Discussion options

You must be logged in to vote

Okay.. So started removing every binding from the project and started at the rootView (thankfully) where I noticed I did some unnecessary binding.

`struct RootView: View {

let store: StoreOf<RootViewStore>

var body: some View {
    
    WithViewStore(self.store, observe: {$0}) { viewStore in
        TabView(
            selection: viewStore.binding(
                get: \.selected,
                send: RootViewStore.Action.selectTab)
        )
 ...

`

Has been changed to:

`struct RootView: View {

let store: StoreOf<RootViewStore>

var body: some View {
    
    WithViewStore(self.store, observe: {$0}) { viewStore in
        TabView {
            RecipeView(
                store: Store(…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@JarretHoving97
Comment options

Comment options

You must be logged in to vote
1 reply
@JarretHoving97
Comment options

Comment options

You must be logged in to vote
1 reply
@mbrandonw
Comment options

Answer selected by JarretHoving97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants