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

Why synthetic state on TouchableHighlight instead of instance variable? #105

Closed
ide opened this issue Feb 26, 2015 · 0 comments
Closed

Why synthetic state on TouchableHighlight instead of instance variable? #105

ide opened this issue Feb 26, 2015 · 0 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@ide
Copy link
Contributor

ide commented Feb 26, 2015

As I read it, synthetic state is a way to cache a transformation of the props since the state is expected to change more frequently than the props (i.e. most re-renders will be due to state changes, not prop changes). Just curious if there was a reason the data was stored in the component state instead of an instance variable.

@ide ide closed this as completed May 30, 2015
@facebook facebook locked as resolved and limited conversation to collaborators May 30, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants