React-SDK - 3.4.0

[3.4.0] - Mar 9, 2026

New Features

  • Add a server-safe bundle that is automatically resolved when imported in React Server Components, excluding client-only React APIs (#318)
  • Add qualifiedSegments prop to OptimizelyProvider for passing pre-fetched ODP segments, enabling synchronous ODP-based decisions during SSR (#318)
  • Add getQualifiedSegments utility for fetching ODP audience segments server-side (#318)

Enhancements

  • Improve useExperiment, useFeature, and useDecision hooks to compute decisions when config and user context (including segments) are available, without waiting for onReady (#318)
  • Add comprehensive server-side rendering integration guide covering SSR, SSG, and App Router patterns (#318)


https://github.com/optimizely/react-sdk/releases/tag/3.4.0