Skip to content

Conversation

zpbc007
Copy link

@zpbc007 zpbc007 commented Nov 22, 2023

based on #3
use onChange modifier to track query data and sync with TCA State.

@DandyLyons
Copy link
Contributor

When running this build, the app sometimes crashes when I delete a row. (This crash happens on both the TCAContentView tab and the QueryView tab.

Error:

Could not cast value of type 'Swift.Optional<Any>' (0x1e9de71f8) to 'Foundation.UUID' (0x1e9e4bd58).

I'm not sure why this is happening. It seems that SwiftData (and Core Data under the hood) is storing the id (UUID) as a Any? type under the hood.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants