Feature Flags
TheuseFeatureFlags hook provides boolean toggles for remote feature control. Features can be enabled or disabled from the Stackfront dashboard without deploying a new app version.
Usage
Hook API
Available Flags
| Flag | Description |
|---|---|
storiesEnabled | Story highlights carousel |
loyaltyEnabled | Loyalty points and tiers |
reviewsEnabled | Product reviews |
wishlistEnabled | Local wishlist |
announcementsEnabled | Announcement bar |
popupsEnabled | On-screen popups |
abandonedCartEnabled | Abandoned cart push notifications |
liveVisitorCountEnabled | Live visitor count display |
recentPurchasePopupEnabled | Recent purchase notifications |
subscriptionsEnabled | Subscription/recurring purchase features |
false when the config hasn’t loaded yet.