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

Prevent set state when disabled #150

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yhkaplan
Copy link

Motivation

This way, we can use ReactNavigationPerformanceView in production just like PerformanceMeasureView without worrying about degrading performance

Description

It looks like the setState call would result in a re-render, which is best avoided when disabled. Please tell me if you prefer a different approach 🙏

I also updated part of the contribution guidelines

Test plan

Added unit test

Checklist

  • I have added a decision record entry, PR includes changes to monorepo setup that may require explanation

@yhkaplan yhkaplan force-pushed the prevent-setState-when-disabled branch from fd7e64b to e01d705 Compare May 26, 2023 20:25
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.

2 participants