bvaughn / suspense

Utilities for working with React Suspense

Home Page:https://suspense.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cache.prefetch() throws

hbenl opened this issue · comments

If you call cache.prefetch() and an error has already been cached for that request, it will throw (because then cache.readAsync() will throw instead of returning a rejected Promise and cache.prefetch() doesn't handle that).

Good point.

Fixed in suspense@0.0.53