chore(docs): Generated References (automated) (#8532)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
This commit is contained in:
co-authored by
kodiakhq
parent
f659c6d8bd
commit
fdc94f6482
@@ -9,7 +9,7 @@ import { TypeList } from "docs-ui"
|
||||
|
||||
This documentation provides a reference to the `createHook` . It belongs to the `@medusajs/workflows-sdk` package.
|
||||
|
||||
Expose a hook in your workflow where you can inject custom functionality as a step function.
|
||||
Expose a hook in your workflow where you can inject custom functionality as a step function.
|
||||
|
||||
A handler hook can later be registered to consume the hook and perform custom functionality.
|
||||
|
||||
@@ -27,11 +27,11 @@ import {
|
||||
import { createProductStep } from "./steps/create-product"
|
||||
|
||||
export const myWorkflow = createWorkflow(
|
||||
"my-workflow",
|
||||
"my-workflow",
|
||||
function (input) {
|
||||
const product = createProductStep(input)
|
||||
const productCreatedHook = createHook(
|
||||
"productCreated",
|
||||
"productCreated",
|
||||
{ productId: product.id }
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user