App says I need to Set a .modelContext in view's environment to use Query

Only I do:

        .sheet(isPresented: self.$showMoveItemSheet) {
            MoveItemsView(items: Array(self.selectedItems), from: self.room)
                .modelContext(self.context)
        }
        .modelContext(self.context)

and then in the MoveItemsView I have

    @Environment(\.modelContext) var context

<pause> Hm, I'm setting the Query programmatically during init, would that be the cause? 'cause it does seem to work...

I am also facing the same issue in a Sheet. Did you find any solution?

App says I need to Set a .modelContext in view's environment to use Query
 
 
Q