Marvin
03/03/2023, 6:57 PMconst session = {
suiteletUrl: environment.getConfig("ItemAvailability.SuiteletUrl")
, isEditOrder: false
};
create session object and pass it into the view.
return new ItemAvailabilityView({container: container, session: session});
I have a listener for the event that will receive session information after it's fetched from the other module and change a session property and render the layout again.
cart.cancelableOn("after:editOrder.session", function(return_session) {
session.isEditOrder = return_session.isEditOrder;
container.getLayout().render();
});
Is there a downside to this?