Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

fix: reduce state in useLast#56

Closed
zzmp wants to merge 4 commits into
mainfrom
use-last
Closed

fix: reduce state in useLast#56
zzmp wants to merge 4 commits into
mainfrom
use-last

Conversation

@zzmp
Copy link
Copy Markdown
Contributor

@zzmp zzmp commented Jul 11, 2022

Use a ref for useLast instead of using state. This improves performance by rendering a frame earlier, and is more idiomatic.

@zzmp zzmp requested a review from kristiehuang July 11, 2022 09:43
@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
widgets ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 7, 2023 at 0:56AM (UTC)

@vercel vercel Bot temporarily deployed to Preview July 11, 2022 09:44 Inactive
@vercel vercel Bot temporarily deployed to Preview July 11, 2022 10:29 Inactive
@vercel vercel Bot temporarily deployed to Preview October 18, 2022 00:30 Inactive
@zzmp zzmp closed this Mar 7, 2023
@vercel vercel Bot temporarily deployed to Preview March 7, 2023 00:56 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants