Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
0.5.105
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelrk committed Jun 25, 2024
1 parent c2440c5 commit 49ab9f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/cli/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// latest version of netzo/cli (see https://github.com/netzo/netzo/releases)
export const VERSION = "0.5.104";
export const VERSION = "0.5.105";

// minimum version of Deno required to run this CLI
// (see https://github.com/denoland/deployctl/blob/main/src/version.ts)
Expand Down
6 changes: 3 additions & 3 deletions lib/components/blocks/plot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ export * from "../../deps/@observablehq/plot.ts";
* @returns {JSX.Element} the plot figure
*/
export function Figure({ options }: { options: Plot.PlotOptions }) {
const containerRef = useRef();
const containerRef = useRef<HTMLElement>();
// replace client-side rendered plot with client-side (hydrated) plot entirely

if (IS_BROWSER) {
useEffect(() => {
// FIXME: use something like .replaceWith() instead of .append()/.remove() to avoid
// FIXME: figure out how to use .replaceWith() instead of .append()/.remove() to avoid
// flickering on first client-side render without breaking hydration (e.g. tooltips)
const plot = Plot.plot(options);
containerRef.current.append(plot);
containerRef.current!.append(plot);
return () => plot.remove();
}, [options]);

Expand Down

0 comments on commit 49ab9f1

Please sign in to comment.