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>
.
This API is a WIP and is subject to change. To use this API, you can use the
following version of the Makeswift runtime: 0.0.0-snapshot-20241113160601
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 the
<MakeswiftComponent>
component.
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?