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

Add React.useState for lazy initialization #189

Merged
merged 2 commits into from
May 16, 2020
Merged

Conversation

Shmew
Copy link
Collaborator

@Shmew Shmew commented May 14, 2020

This adds the function overload for React.useState so that expensive initialization functions don't make apps unusable.

@Shmew Shmew requested a review from Zaid-Ajaj May 14, 2020 06:37
@Shmew Shmew changed the title Add React.useStateLazy Add React.useState for lazy initialization May 14, 2020
@Zaid-Ajaj Zaid-Ajaj mentioned this pull request May 14, 2020
8 tasks
Copy link
Owner

@Zaid-Ajaj Zaid-Ajaj left a comment

Choose a reason for hiding this comment

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

Awesome stuff, like always

@Zaid-Ajaj Zaid-Ajaj merged commit e4ccc94 into master May 16, 2020
@Shmew Shmew deleted the use-state-lazy branch May 16, 2020 16:17
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.

None yet

2 participants