Comments (7)
Thanks, I will check it out
from builder.
Hi. Just following up. We'd like to use the GEN2 SDKs but there is no way to update the BuilderStoreContext
with a new state. Could you enlighten us please?
from builder.
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?
from builder.
Hi @mrkoreye ,
The Goal is to Update the state from a custom component.
Im our case there is a custom component in which the User can select a product which should cause an update to the state, so text on the page can bind to the product's properties.
We have other uses for the state and context (passing state and context props to child components)
from builder.
@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.
from builder.
@woellij v1.0.19 now exports BuilderContext
:
https://github.com/BuilderIO/builder/blob/main/packages/sdks/output/react/CHANGELOG.md#1019
from builder.
Hi.
I had a look and while i can reference the BuilderContext
in useContext
, there is no real typescript type information and one would have to resort to the builder.io sourcecode to find out about BuilderContextInterface
.
In my opinion that's not really optimal.
Also, the text does not update when the rootState
is updated with rootSetState
. Is there a way to accomplish that from a custom Component? If the state is set through an Action configured in builder.io the text updates.
from builder.
Related Issues (20)
- Critical problem with the <Columns> component when using @builder.io/react-sdk HOT 2
- Using Next.js App Dir with Builder V2 HOT 2
- Page with data from builder are slow / crashing HOT 7
- Critical memory issue since 1.0.21 HOT 15
- Missing `folded` for `object` Input [typescript]
- Problem with translations link on block url HOT 2
- "isolated-vm import error" on Vercel with Nuxt HOT 1
- TypeScript readonly error
- Next.js 14 App Router using sdk-react-nextjs and Contentful
- React SDK wrong promises resolutions for parallel requests
- Visual editor is failing on trail plan HOT 1
- makeStateKey deprecation causes builder.io not to build in an Angular 18 project HOT 5
- Allow astro components to be registered by Builder.io HOT 1
- Node 22 compatibility HOT 1
- Request to switch Solid SDK dependency solid-styled-components with solid-styled
- Getting "gyp ERR! UNCAUGHT EXCEPTION" when installing "@builder.io/react": "3.0.8"
- Hydration error on Remix
- Feature request: disable client-side tracking via Pixel
- Angular SDK Gen 2 release estimate? Current branch of dev? HOT 2
- Problem with save template and use template HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from builder.