DoSomethingArchive / LetsDoThis-iOS

:iphone: iOS source code for DoSomething: Take Action on the News
http://app.dosomething.org
MIT License
2 stars 0 forks source link

API ReactComponent #965

Open aaronschachter opened 8 years ago

aaronschachter commented 8 years ago

DRY our React fetch networking calls into a helper API class, where we can set the relevant URL's, headers, timeouts (#823), catch/handle network errors (#923), etc.

Also can log any interesting networking errors to Crashlytics non-fatal zone :eyes:

aaronschachter commented 8 years ago

It might be sick to create our own SlothKit JS library for this, a la https://github.com/philschatz/octokat.js

cc @jonuy @DFurnes

jonuy commented 8 years ago

slothkit