Home App Docs Blog Github

State Update issue (Gatsby)

Hi team,

Anyone facing a state update issue in gatsby? I have an app on https://reminiscebyro-b534f.firebaseapp.com/shop built with builder and react but when you have items in the cart and trigger the modal to add an address, looks like the state gets stuck on true even though i have set it in builder to false.

The below code fires but the state never changes

/**
 * Global objects available in state bindings:
 *
 * state - builder state object - learn about state https://www.builder.io/c/docs/guides/state-and-actions
 *
 *
 * Learn more: https://www.builder.io/c/docs/guides/custom-code
 *
 */



const handler = e => state.isEditingAddress = false;

export default handler