pcui
pcui copied to clipboard
Panel Header is duplicated when using components in react app
I noticed this while playing around with PCUI in a NextJS app.
The following code
export default function App() { return ( <Panel headerText="Foo Basadsadfr" collapsible collapseHorizontally resizable="right" width={150} resizeMin={150} resizeMax={300}/> ) }
results in this on my side
I assume this is perhaps due to how react manages the lifetime? Its working fin in the current example so I assumed that its a react specific.
Yep, this looks like a valid issue. Repro https://stackblitz.com/edit/vitejs-vite-vrt9bt?file=src%2FApp.tsx
Appears to be fixed by #360 Thanks a lot :)