SwiftUIX / Coordinator

A declarative navigation API for SwiftUI.
MIT License
252 stars 21 forks source link

os_unfair_lock_lock is being called from AppDelegate #6

Closed fampaySiddharth closed 1 year ago

fampaySiddharth commented 1 year ago

If I use debug google service plist for Firebase and initialize with it. Then Merge throws a os_unfair_lock_lock error, sometimes reactor.dispatch also throws this

Screenshot 2023-05-31 at 5 59 07 PM

fampaySiddharth commented 1 year ago

The 'retainSink' is causing the issue.

public func uploadFCMToken() {
    _ = myRepository().uploadFCMToken().retainSink() <- This retain sink
  }
vmanot commented 1 year ago

This is related to the Merge framework (and also should be fixed with the recent refactor of PassthroughTask).