Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Components / NextJS App Directory Support #203

Open
StevenLangbroek opened this issue May 26, 2023 · 1 comment
Open

Server Components / NextJS App Directory Support #203

StevenLangbroek opened this issue May 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@StevenLangbroek
Copy link

StevenLangbroek commented May 26, 2023

Is your feature request related to a problem? Please describe.
Currently, there is, to the best of my understanding, no way to make the React SDK work with NextJS's App Router, which is based on RSC (React Server Components). I've hacked around it for now by using the NodeJS SDK for Server Components, passing allFlagState to a custom Provider, which wraps launchdarkly-js-client-sdk in a use client + useEffect, but I'm honestly not thrilled about it haha.

Describe the solution you'd like
Ideally, the react-sdk Just Works™️, but I understand this might be a near-rewrite... I'd love to hear y'alls thoughts ¯\_(ツ)_/¯

@louis-launchdarkly
Copy link
Contributor

Hello @StevenLangbroek, thank you for reaching out. While we can promise any action on this idea, I will reach out to the JS engineers on the team and see what they think about this.

Filed Internally as 205109.

@louis-launchdarkly louis-launchdarkly added the enhancement New feature or request label May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants