Hi everyone. Do you know how to handle error on prefetchPayload if any and retries mechanism for that ðŸ«
h
happy-autumn-40938
05/08/2024, 6:30 PM
prefetchPayload is a brand new method, apologies about any rough edges. What sort of error are you running into? Network error / timeout?
happy-autumn-40938
05/08/2024, 6:33 PM
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.