-
Notifications
You must be signed in to change notification settings - Fork 854
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
sdk-react gen2 useContext #3044
Comments
Hi. Just following up. We'd like to use the GEN2 SDKs but there is no way to update the |
Hi @woellij , can you describe what you are trying to achieve in more detail so that we can help? As in, what is the end goal you have? Are you trying to pass functions to be used within Builder content? Set an initial state for Builder content? |
Hi @mrkoreye , |
@woellij Thanks for reporting. The context exists but is not currently being exported by the Gen2 SDKs. I will let you know here when it is fixed. |
## Description This PR exports `BuilderContext` as a named export in our gen2 sdks. _Screenshot_ If relevant, add a screenshot or two of the changes you made. **Jira** https://builder-io.atlassian.net/browse/ENG-5614 Closes #3044
@woellij v1.0.19 now exports https://github.com/BuilderIO/builder/blob/main/packages/sdks/output/react/CHANGELOG.md#1019 |
Thanks, I will check it out |
Hi. Also, the text does not update when the |
Hi there, thanks for the great Product you're making here.
I'm trying to migrate a project from gen1 SDK to gen2 SDK but facing the issue that there is no documented way to access any
BuilderContext
like it was in gen1.In Gen 1 i could access the
BuilderStoreContext
through react.useContext, which does not seem to be possible in gen2.I've looked through the compiled sources and exported types and there does not seem to be a way.
Is this on the roadmap to add / document?
Thanks in advance.
The text was updated successfully, but these errors were encountered: