Skip to content

Commit

Permalink
fix(plugin-component): force re-rendering of html
Browse files Browse the repository at this point in the history
fix: #112
  • Loading branch information
BearToCode committed Aug 18, 2024
1 parent 5621b61 commit a1ffb6b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
const debouncedRenderer = debounce((value: string) => {
carta
.render(value)
.then((rendered) => (renderedHtml = rendered))
.then((rendered) => {
renderedHtml = ''; // Force @html to re-render everything
renderedHtml = rendered;
})
.then(() => events('render', void 0));
}, carta.rendererDebounce ?? 300);
Expand Down

0 comments on commit a1ffb6b

Please sign in to comment.