Hi everyone. Do you know how to handle error on pr...
# ask-questions
c
Hi everyone. Do you know how to handle error on prefetchPayload if any and retries mechanism for that 🫠
h
prefetchPayload is a brand new method, apologies about any rough edges. What sort of error are you running into? Network error / timeout?
under the hood, both prefetching and fetching use the same
helpers.fetchFeaturesCall
which you can override/patch by importing
{ helpers }
from the SDK. It has no retry built in, but you could add your own retry logic. Alternately, if prefetch fails due to timeout, then you could just let the normal just-in-time fetch pick up.