@westyx-nexus/openfeature-provider-react package bridges the Nexus React SDK into the OpenFeature Web SDK. It wraps an existing NexusClient and emits ConfigurationChanged on every cache update so OpenFeature clients re-evaluate flags automatically.
Installation
Quick start
Evaluation mapping
All evaluations use the
STATIC resolution reason. The provider does not perform per-user targeting - use client.evaluateAB() directly for that.
Live updates
The provider subscribes to the Nexus client oninitialize(). Each time the client’s cache refreshes - via SSE push or TTL poll - the provider emits ProviderEvents.ConfigurationChanged. OpenFeature’s React bindings pick this up and trigger re-renders in components that consume the changed flags.
API reference
NexusReactProvider
createOpenFeatureProvider
new NexusReactProvider(client).
