mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-02-19 16:38:39 +01:00
frontend: only display "render count" when in development mode
This commit is contained in:
@@ -78,7 +78,9 @@ export const AsyncMethodComponent = React.memo((props: AsyncMethodProps) => {
|
||||
<div
|
||||
className="col-5 align-items-center method"
|
||||
id={parent_path.concat('.' + name)}>
|
||||
<p>Render count: {renderCount.current}</p>
|
||||
{process.env.NODE_ENV === 'development' && (
|
||||
<p>Render count: {renderCount.current}</p>
|
||||
)}
|
||||
<h5>
|
||||
Function: {name}
|
||||
<DocStringComponent docString={docString} />
|
||||
|
||||
Reference in New Issue
Block a user