Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Add offline fetch of repository error to view model errors signal - #19

Open
stevemoser wants to merge 3 commits into
jspahrsummers:masterfrom
stevemoser:fix-offline-assert-crash
Open

Add offline fetch of repository error to view model errors signal#19
stevemoser wants to merge 3 commits into
jspahrsummers:masterfrom
stevemoser:fix-offline-assert-crash

Conversation

@stevemoser

Copy link
Copy Markdown

Not sure if this is the right way to fix the offline error but it fixes #16 for me. Also it seems the the error alert view eventually appears but not instantly, probably because [alert show] isn't on the main thread. 🍻

@jspahrsummers jspahrsummers self-assigned this Feb 17, 2014
Comment thread GroceryList/GCYGroceryListViewModel.m Outdated

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the indentation here to use tabs instead of spaces?

@jspahrsummers

Copy link
Copy Markdown
Owner

Thanks! Just a couple notes.

@stevemoser

Copy link
Copy Markdown
Author

Np. I think I fixed the white space, let me know otherwise. Not sure as I never use tabs with Xcode.

@jspahrsummers

Copy link
Copy Markdown
Owner

Yep, the indentation is certainly fixed, but there was a note about the threading too (regarding self->_errors sendNext:):

This should only happen on the main thread. You can use [RACScheduler.mainThreadScheduler schedule:] to do that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crashes when offline

2 participants