bnjmnrsh-projs / signal-v-noise

Code kata using the NYT API.
https://bnjmnrsh-projs.github.io/signal-v-noise/
1 stars 0 forks source link

Implement SWR type treatment if 429 error #27

Closed bnjmnrsh closed 10 months ago

bnjmnrsh commented 10 months ago

If the local storage is stale, we trigger a fetch call to the CF Worker, if the worker comes back with a 429 error we end up displaying it. However, we could still display the stale content from the store rather than an error.