Quick Start
1. Install the package
npm install @gitsbt/waylume-sdk2. Create the SDK files
your-app/
app/
layout.tsx
page.tsx
waylume-setup.tsx
waylume/
index.ts
summary1.json
summary2.json
...3. Add stable targets to your UI
4. Create a flow definition
5. Register the flow
6. Add a global setup component
7. Render a launcher
Common pitfalls
Mounting the launcher on every page
Removing usePathname from WaylumeGlobal
usePathname from WaylumeGlobalMissing expectedUrlPattern on navigation steps
expectedUrlPattern on navigation stepsMismatched target and data-waylume
target and data-waylumeMissing 'use client'
'use client'Result
最終更新
役に立ちましたか?

