Allow custom component to refresh when input change in editor

Builder content link

Builder public api key
1d8ecee591ac4358befb8fe998100548

What are you trying to accomplish
Is there any way to listen to the onChange event when input field is updated in Builder editor? I created a custom component that has input field for address that can show map, but in order for the map to generate to the latest address in the editor, I have to click the refresh.

Screenshots or video link
1d8ecee591ac4358befb8fe998100548

Code stack you are integrating Builder with
e.g. NextJS, react, Shopify

Hey @tlee-pb please share the code of your custom component with me to investigate this.

Hello Sheema,

Thanks for the reply. I resolved by spreading the props in my wrapper component like the following:

<CustomComponent attr={attr} {...rest}>
   {children}
</CustomComponent>
1 Like