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

removed a redundant object creation when using forceUpdate #1567

Merged
merged 1 commit into from Apr 15, 2020
Merged

removed a redundant object creation when using forceUpdate #1567

merged 1 commit into from Apr 15, 2020

Conversation

vzaidman
Copy link
Contributor

there's no need to pass an object to forceRender like this: forceRender({})

this is enough: forceRender() and saves us a redundant object creation.

notice the example in the official react docs:
https://reactjs.org/docs/hooks-faq.html#is-there-something-like-forceupdate

@netlify
Copy link

netlify bot commented Apr 15, 2020

Deploy preview for react-redux-docs ready!

Built with commit 6526810

https://deploy-preview-1567--react-redux-docs.netlify.com

@timdorr
Copy link
Member

timdorr commented Apr 15, 2020

Thanks!

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