How to include an embeddable component in your app
Store Page
but are applicable to any embeddable component.@sidedish/react
package that you can use to easily embed your store. To use it, simply run:
internal
property of the Store component.
Another way to do this is to use the internal
property of passed user
object in the unsafeParams or the safe session.
/p/{X}
in the url, where X can be either page id or page slug.
$internal=true
parameter in the search params of the url.
Another way to do this is to use the internal
property of passed user
object in the unsafeParams or the safe session.
unsafeParams
.
$
to guarantee uniqueness-
URL?$accountId=SOME_ID&$userId=ANOTHER_ID
. This is only required in the iframe method and not in the react method. Please use JSON.stringify() the values.
Set origin validation in admin
Set a callback for a button somewhere in your store
ACTION_IDENTIFIER
, so you could recognize specific events of that kind. Since a store can have multiple callbacks, the id is used to recognize a specific action. You could however use the same id on multiple places in the store to call for the same callback.Test
Pass current page to store
url
should reflect the page from the browser. The implementation depends on your code.Register changes in store and reflect in browser history
onPathChange
callback on the Store.