Reload the page canvas
Version: 0.4
Before you begin
-
Complete the SDK quick start.
You can programmatically reload the page canvas so the SitecoreAI Page builder user can immediately see the most recent changes, with no manual reloading required. This is useful when the page contents change. For example, after your Marketplace app inserts a new text field into the canvas.
To reload the page canvas:
-
In the SDK initialization code where you run the
useMarketplaceClienthook, after the Effect Hook, create a new mutation function: -
In the
returnstatement, create a button that runs the mutation function, then save your changes: -
In the SitecoreAI Page builder, refresh the page, then open your Marketplace app.
-
In the Marketplace app, click Reload canvas.