pointfreeco / swift-composable-architecture

A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
https://www.pointfree.co/collections/composable-architecture
MIT License
12.22k stars 1.42k forks source link

Alert in SwiftUI-CaseStudies-AlertAndConfirmationDialog is glitch #3272

Closed PatrickSCLin closed 2 weeks ago

PatrickSCLin commented 1 month ago

Description

the alert which is inside of .incrementButtonTapped didn't work as expected in Alert mode but ConfirmationDialog was working

Checklist

Expected behavior

The first alert Alert! should be dismissed and then showing the second alert Incremented!

Actual behavior

the first alert Alert! was dismissed but second alert Incremented! didn't pop out

Steps to reproduce

  1. Run the CasesStudies example SwiftUI app
  2. Taps on Alerts and Confirmation Dialogs
  3. Taps on Alert
  4. Taps on Increment on Alert! Alert

The second alert should be shown but it didn't

The Composable Architecture version information

1.12.1

Destination operating system

iOS 17.5

Xcode version information

Version 15.4 (15F31d)

Swift Compiler version information

swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0