Skip to content

chore: add generated React hooks and Node client#22

Merged
beeme1mr merged 4 commits intomainfrom
code-gen
Apr 29, 2025
Merged

chore: add generated React hooks and Node client#22
beeme1mr merged 4 commits intomainfrom
code-gen

Conversation

@beeme1mr
Copy link
Copy Markdown
Member

@beeme1mr beeme1mr commented Feb 3, 2025

This PR

  • adds generated React hooks based on the flag manifest
  • adds generated Node.js client based on the flag manifest
  • adds generate NPM script
  • adds generate Make command
  • extends flag.json to include flag manifest requirements

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Copy link
Copy Markdown
Member

@lukas-reining lukas-reining left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really cool!

@beeme1mr
Copy link
Copy Markdown
Member Author

Unfortunately, SSG fails when using suspense flags. I believe the root cause is the no op provider is never in a ready state (by design). This causes the build process to hang indefinitely.

@beeme1mr beeme1mr linked an issue Apr 25, 2025 that may be closed by this pull request
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
- Updated package.json to use new versions of OpenFeature SDKs and other dependencies.
- Refactored API routes to utilize the generated OpenFeature client instead of the deprecated server SDK methods.
- Changed imports in checkout and header components to use the new generated hooks for feature flags.
- Created new generated client files for both Node.js and React to streamline feature flag usage.
- Updated database connection logic to align with the new feature flag client methods.

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
@beeme1mr beeme1mr requested a review from kriscoleman April 29, 2025 17:21
@beeme1mr beeme1mr changed the title chore: add generated React hooks chore: add generated React hooks and Node client Apr 29, 2025
@beeme1mr beeme1mr added this pull request to the merge queue Apr 29, 2025
Merged via the queue into main with commit 6a8a0e2 Apr 29, 2025
5 checks passed
@beeme1mr beeme1mr deleted the code-gen branch November 10, 2025 15:02
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.

Add codegen in the ToggleShop

2 participants