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

Fix spinners harder #714

Merged
merged 7 commits into from
Dec 9, 2023
Merged

Fix spinners harder #714

merged 7 commits into from
Dec 9, 2023

Conversation

mplorentz
Copy link
Member

This is another fix for notes failing to load and showing infinite spinners. I started by writing a good test to exhibit the issue, which required me to pull in the ViewObservation swift package. Then I started playing with the contexts and found that changing the parseContext.parent to viewContext instead of nil fixed the issue where the NSManagedObjectID being held by the view would change on disk and the view would never be notified of changes to the object.

I did some testing to see if this had any negative side effects (like my last attempt did, #632) and I haven't seen any yet. But let's keep an eye out. This should close #697 and #703.

@mplorentz mplorentz requested a review from martindsq December 8, 2023 19:16
@mplorentz mplorentz merged commit 076d0cc into beta Dec 9, 2023
2 of 3 checks passed
@mplorentz mplorentz deleted the fix-object-observation branch December 9, 2023 01:19
@mplorentz
Copy link
Member Author

🤔 I don't recall merging this. I think because it was targeting beta the PR got auto-closed when I merged it to deploy there. Oops, I will reopen.

@mplorentz mplorentz restored the fix-object-observation branch December 11, 2023 16:41
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.

1 participant