|
|
|
|
|
by egeozcan
3034 days ago
|
|
As far as I understand: If you throw a promise (throw as in throwing an error) from the render function, React will retry when it resolves. `createFetcher` is a cache layer so that you don't DOS your own server on re-renders. Maybe though encouraging people use a ServiceWorker for that would have made more sense (edit: it also throws the promise for you when you access the cached value. so, yeah, it is very well-thought indeed). Apart from that, this seems to be very simple to use, well-thought and useful. |
|