Skip to content

Providers

Providers are the context/data layer Whisker modules mount above their tree — store data, translations, analytics, slide-out panel hosting — a level higher-order than the visual components in Components. There is nothing to look at — each one below documents its props and usage examples instead of a live preview.

Provider Description
ConditionalProvider Conditionally wraps children in a provider based on a boolean condition. Avoids JSX duplication from ternary branches.
InventoryProvider Progressive inventory loading (SM → CPA → prices) with IndexedDB cache and React Query.
ModuleAnalyticsProvider New Relic browser analytics scoped to a Whisker module; used by useModuleAnalytics.
NikeStoreProvider Surfaces store info, config, and athletes for the active storeId via Zustand-backed cache.
PlatformAnalyticsProvider Host-level New Relic analytics for whisker-host and platform shell.
SlideOutProvider App-level singleton slide-out panel host. Powers ProductSlideOut and DataTable product drill-down.
TranslationProvider Loads Nike CDN i18n bundles and provides useTranslation; drives RTL/LTR document direction.