DEV Community

Discussion on: React Beginner Question Thread ⚛

Collapse
 
ahylton19 profile image
ahylton19

I want to implement offline support on my React project I built with the YouTube API. Do you have any suggestions on how I can get started with this implementation?

Collapse
 
dan_abramov profile image
Dan Abramov • Edited

You might find something like this helpful: developers.google.com/web/tools/wo...

You could also use Create React App which by default lets your app work offline: github.com/facebookincubator/creat...

Collapse
 
ahylton19 profile image
ahylton19

Okay and if I may ask will Workbox be able to cache the fetched videos from the YouTube API but only rerender the app when the API makes a new call for another video?

Thread Thread
 
dan_abramov profile image
Dan Abramov

I don’t know but I’d be very surprised if it could. Workbox is for caching your own assets, not downloaded assets. I don’t know if it’s possible to cache videos from YouTube but my guess would be no.

Collapse
 
radi_cho profile image
Radi Cho

Try to post this question on the Google Product forums or in Twitter. I had questions about Google OAuth APIs and got very fast response via Twitter and e-mail...