Skip to content

Commit

Permalink
fix: shoud pass id to useRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwcx committed Feb 4, 2024
1 parent ad559ce commit bc87ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/theme-api/DumiDemo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const InternalDumiDemo = (props: IDumiDemoProps) => {
const demo = useDemo(id)!;
const { component, asset, renderOpts } = demo;

const canvasRef = useRenderer(demo);
const canvasRef = useRenderer(Object.assign(demo, { id }));

// hide debug demo in production
if (process.env.NODE_ENV === 'production' && props.previewerProps.debug)
Expand Down

0 comments on commit bc87ccc

Please sign in to comment.