Client
getComponentSnapshot
An instance method of the Makeswift client that fetches a snapshot of a Makeswift component by its id
. This snapshot is only intended to be rendered by <MakeswiftComponent>
and <Slot>
.
Arguments
-
The id of the component.
-
Options for site version and locale.
Return type
An opaque MakeswiftComponentSnapshot
object that is only intended to be rendered by
<MakeswiftComponent>
and <Slot>
.
Examples
The following examples expect that you have a Makeswift client instance already configured and exported from "@/makeswift/client.ts"
. If you don’t, see the client reference.
Basic usage
Localization
Was this page helpful?