spotify / confidence-sdk-js

Other
9 stars 1 forks source link

Flag evaluation timeout is broken in the react integration. #155

Closed andreas-karlsson closed 4 months ago

andreas-karlsson commented 4 months ago

Flag evaluation timeouts aren't stored in the local cache, so when a suspending flag evaluation times out it will re-render and just start a new timeout.

Expected Behavior

Suspend is resolved on timeout and default values shown.

Current Behavior

Suspend fallback is shown indefinitely as long as requests keep timing out.

Possible Solution

Store timed out flag resolutions in the client cache.