react-adaptivecards icon indicating copy to clipboard operation
react-adaptivecards copied to clipboard

Creating duplicate cards

Open GariaHarish opened this issue 5 years ago • 3 comments

There is an issue when I render a card... it's giving me multiple card with same because may state changed multi time in components. There is appendchild concept. Please can you do something helpful to prevent rendering multiple cards...

GariaHarish avatar May 12 '20 18:05 GariaHarish

I ran into the same issue. Updating the state of the app will re-render the card. I was able to solve it by writing the card in React.memo

micahgodbolt avatar Jun 24 '20 01:06 micahgodbolt

I'm wondering if the logic in shouldComponentUpdate might mistakenly return true even when the new and old hostConfig and payload are the same.

dclaux avatar Jun 24 '20 01:06 dclaux

Duplicate of #10 Fix: https://github.com/gatewayapps/react-adaptivecards/issues/10#issuecomment-627517472

michal-turzynski avatar Mar 27 '21 13:03 michal-turzynski