Skip to content

[NT-2678] Simplify optimization root components#165

Merged
Alex Freas (akfreas) merged 8 commits intomainfrom
NT-2678-simplify-optimization-root-components
Mar 6, 2026
Merged

[NT-2678] Simplify optimization root components#165
Alex Freas (akfreas) merged 8 commits intomainfrom
NT-2678-simplify-optimization-root-components

Conversation

@akfreas
Copy link
Copy Markdown
Collaborator

@akfreas Alex Freas (akfreas) commented Mar 4, 2026

There is no need to create the optimization sdk instance outside of a provider - this only adds complexity and more opportunity for errors by developers.

This PR:

  • Creates Optimization SDK instance in <OptimizationProvider/> component
  • Props for OptimizationProvider extend the CoreStateful type
  • Rename types to be more precise: Optimization -> OptimizationReactNativeSdk
  • Only export named types, e.g. OptimizationReactNativeSdk

@akfreas Alex Freas (akfreas) changed the title Nt 2678 simplify optimization root components [NT-2678] Simplify optimization root components Mar 5, 2026
@akfreas Alex Freas (akfreas) marked this pull request as ready for review March 5, 2026 13:05
@akfreas Alex Freas (akfreas) merged commit 7fa19e5 into main Mar 6, 2026
30 checks passed
@akfreas Alex Freas (akfreas) deleted the NT-2678-simplify-optimization-root-components branch March 6, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants