Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memo history events #565

Merged
merged 2 commits into from
Oct 11, 2023
Merged

Memo history events #565

merged 2 commits into from
Oct 11, 2023

Conversation

rin-st
Copy link
Member

@rin-st rin-st commented Oct 10, 2023

Description

Return data from useScaffoldEventHistory is not memoized. So because of .map it returns new array on every render even when events doesn't change

This pr fixes it

Additional Information

Your ENS/address:
0xrinat

Copy link
Collaborator

@technophile-04 technophile-04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So because of .map it returns new array on every render even when events doesn't change

Yup agree, Tysm @rin-st looks good 🙌

@rin-st rin-st merged commit a0eab66 into main Oct 11, 2023
1 check passed
@rin-st rin-st deleted the fix/memo-events-history branch October 11, 2023 14:23
carletex added a commit that referenced this pull request Oct 12, 2023
* Tweak DaisyUI `link` (#560)

* Improve ENS support (accept all TLDs) (#563)

* fix: memo history events (#565)

* update developer guide with backmerge-main instructions

* add changeset

---------

Co-authored-by: Carlos Sánchez <oceanrdn@gmail.com>
Co-authored-by: Filip Harald <Filip.harald@gmail.com>
Co-authored-by: Greg <35093316+gskril@users.noreply.github.com>
Co-authored-by: Rinat <rinat@hey.com>
Co-authored-by: Carlos Sánchez <oceanrdn@gmail.com>
@github-actions github-actions bot mentioned this pull request Oct 12, 2023
carletex added a commit that referenced this pull request Oct 23, 2023
* Tweak DaisyUI `link` (#560)

* Improve ENS support (accept all TLDs) (#563)

* fix: memo history events (#565)

Co-authored-by: Carlos Sánchez <oceanrdn@gmail.com>

* Extract header menu links (#570)

* Move Block Explorer to footer (#574)

* Remove ExampleUI (pages, components, assets, content) (#578)

* update wagmi, viem, rainbowkit (#580)

* add zkSync, scroll & polygonZkEvm to foundry.toml

* add changeset

---------

Co-authored-by: Filip Harald <Filip.harald@gmail.com>
Co-authored-by: Greg <35093316+gskril@users.noreply.github.com>
Co-authored-by: Rinat <rinat@hey.com>
Co-authored-by: Carlos Sánchez <oceanrdn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants