Migrating to App Bridge 3.0
App Bridge ReactAnchor link to section titled "App Bridge React"
Migrating from 2.x.x to 3.0.0 may require some updates to your code if using
useContextualSaveBarAnchor link to section titled "useContextualSaveBar"
In version 2.x.x, you called
useContextualSaveBar with all of its options. It then created the contextual save bar instance and dispatched show and hide functions as an internal side effect based on the
visible prop, as well as any changes in the options. It did not return anything.
In version 3.0.0,
useContextualSaveBar becomes more declarative. You now call the hook without any props. It returns several objects and methods that you can use to update contextual save bar options, as well as to show and hide the component.
See useContextualSaveBar docs for more details.
In version 2.x.x,
useToast returns a
show method that accepts one prop - an object with the following properties:
All the props except
content are optional.
In version 3.0.0, the
content moves to a top-level prop and the remaining properties are passed in as an optional
options prop (all properties in the options object remain optional).
See useToast docs for more details.