Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use Query with TCA #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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