Closed phaitonican closed 2 months ago
Thanks @phaitonican! Would appreciate if you could share an link to minimal reproducible repo with example simple contract and using the hook on same page causing problem.
Hello. Here is the minimal reproduciable repo https://github.com/phaitonican/scuffold-eth-2-event-history-test
Just have open http://localhost:3000/test
site. It call component with useScaffoldEventHistory twice on same Page (test/page.tsx
). Just Simple smart contract with counter function which emit signal (Test.sol
), run twice inside deployement script
@phaitonican thank you for your example! Please add changes from suggested pr and check if it works for you
It does work thanks very much
Is there an existing issue for this?
Which method was used to setup Scaffold-ETH 2 ?
git clone
Current Behavior
I use useScaffoldEventHistory twice on a single page with different filters. It fetches right data. I run again and the old data does not change, it use overrides the data with first run of useScaffoldEventHistory (even the constants have a differnt name). Any ideas??
This:
and PostCardList.tsx:
But the second One gets overridden with contents of first one?? Both solidity parameters are indexed. And I also put a key inside my looped list items (unique hash)
Expected Behavior
No response
Steps To Reproduce
Use useScaffoldEventHistory on same page with different filters
Anything else?
No response