Disabled Revalidation

This demo is easiest to understand if you open its source code in a parallel tab.

Source code

This demo shows how to configure @happykit/flags to not refetch the flags when the window regains focus.

When you leave the window and come back to it later, HappyKit will reevaluate the feature flags by default. A new request is sent and the browser's flags are reevaluated. We use the visibility change API to detect when the window regained focus. But this behavior can be turned off. This demo shows how to prevent reevaluations when the window regains focus.

Render #1 (Current render)
{ flags: null, data: null, error: null, fetching: false, settled: false, visitorKey: null }