SaveBar API mismatch between docs and real code?

I’m migrating my app to the new polaris web components, and working on the SaveBar now.

The documentation at Save bar API explains showing SaveBar programmatically like this:

const saveBar = shopify.saveBar;
saveBar.show();

But the real shopify saveBar show method signature requires save bar ID as the first parameter (as it was in older save bar with polaris react / app bridge react):

I’m using polaris and app bridge from the Shopify CDN:

<script src="https://cdn.shopify.com/shopifycloud/polaris.js"></script>
<script src="https://cdn.shopify.com/shopifycloud/app-bridge.js"></script>

I do not use related react packages or anything like that, just pure polaris & app bridge from CDN.

Changing to app-bridge from polaris.

Thanks for flagging this! We’ve updated the Save Bar API docs to clarify two approaches. Let us know if you have any further questions.