Replies: 1 comment
-
|
Maybe best to show me an example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
<Loading>isPending()<Errored>Solid 2.0 appears to provide no built-in primitive for detecting when a previously failed (or explicitly evicted) value is being fetched again without a stale value to show.
Specifically:
Inside
<Errored fallback={(err, reset) => ...}>, callingreset()triggers recomputation but returns immediately; there is no promise, signal, or observable retry state exposed to the fallback.After a cache eviction + re-read, there is no
isPending(...)-equivalent for the case where the previous value is gone and a new fetch is now in flight.This means retry/refetch UI currently requires manual coordination, such as managing an
isRetryingsignal and wiring it toprefetch(...).finally(...)alongsidereset().Should Solid expose something for this case, such as:
isRetrying(...)/isRefetching(...)primitive, orreset()API that returns a promise or observable retry lifecycle?Beta Was this translation helpful? Give feedback.
All reactions