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

chore: refactor vanilla.ts and react.ts #163

Merged
merged 3 commits into from
Jun 5, 2021

Conversation

dai-shi
Copy link
Member

@dai-shi dai-shi commented Jun 3, 2021

Inspired by reduxjs/react-redux#1726 (comment),
this make some micro optimization. Most of them are not known if effective.
Optional chaining is more for readability/consistency.

image

js-framework-benchmark doesn't show much differences (left=before, right=after). valtio's use case of forceUpdate is very limited and probably doesn't apply for this.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 5, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e939e87:

Sandbox Source
React Configuration
React Typescript Configuration

@dai-shi dai-shi merged commit ab097b2 into master Jun 5, 2021
@dai-shi dai-shi deleted the chore/refactor-vanilla-and-react branch June 5, 2021 00:31
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.

1 participant