@manta-eu/horns-kit/client
Reference for @manta-eu/horns-kit/client in @manta-eu/horns-kit 0.2.3.
Type Aliases
HydrateHornEmbedsOptions
HydrateHornEmbedsOptions =
object
Properties
catalogCard?
optionalcatalogCard?:HornSnapshotViewProps["catalogCard"]
Draws a catalog card once the page is live, for the same reason as writtenView.
onRecoverableError?
optionalonRecoverableError?: (error,embedId) =>void
Parameters
error
unknown
embedId
string
Returns
void
root?
optionalroot?:ParentNode
writtenView?
optionalwrittenView?:HornSnapshotViewProps["writtenView"]
Draws a written view once the page is live. The server sent a placeholder for it, so this is the one thing hydration adds rather than adopts — a host that passes nothing keeps the placeholder.
Variables
hornHydrationAttribute
consthornHydrationAttribute:"data-horn-hydration"="data-horn-hydration"
Functions
hydrateHornEmbeds()
hydrateHornEmbeds(
options?):Root[]
Parameters
options?
Returns
Root[]