Skip to content

SwiftUI Warning: Accessing StateObject's object without being installed on a View. This will create a new instance each time. #763

@larryonoff

Description

@larryonoff

This happens in LazyImage for the latest Nuke 12.4 on any iOS 17.

    public func onStart(_ closure: @escaping (ImageTask) -> Void) -> Self {
        map { $0.viewModel.onStart = closure }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions