Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Reduce object creation by useConstant #97

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

Merged
Brooooooklyn merged 1 commit into LeetCode-OpenSource:master from jeetiss:use-constant
Nov 6, 2019

Conversation

Copy link
Contributor

@jeetiss jeetiss commented Nov 4, 2019
edited
Loading

Hello 🙌🏻

use-constant is better then use-memo and use-state, when created object is CONSTANT, because use-constant don't have cache invalidation and state change logic, just saves value in ref

fix #51

Andarist/use-constant#3
Andarist/use-constant#4

Copy link
Contributor Author

jeetiss commented Nov 4, 2019

I don't know why test-coverage script fails, can you help me with this?

Copy link
Contributor Author

jeetiss commented Nov 6, 2019

@Brooooooklyn, help me!

@Brooooooklyn Brooooooklyn merged commit 6191786 into LeetCode-OpenSource:master Nov 6, 2019
@jeetiss jeetiss deleted the use-constant branch November 6, 2019 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

useMemo might not be stable

AltStyle によって変換されたページ (->オリジナル) /