The code returns the following error:
Cannot update a component (`SnippetLibrary`) while rendering a different component (`ROIDashboard`). To locate the bad setState() call inside `ROIDashboard`, follow the stack trace as described in https://react.dev/link/setstate-in-render
at (zustand)
at c (zustand)
at (zustand)
at getMetrics (/store/playground-store)
at (/components/playground/roi-dashboard)
Revise the code to address the error.
I was previewing: /