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

Props & State vs. this.data #25

Open
khoerling opened this issue Jan 29, 2016 · 1 comment
Open

Props & State vs. this.data #25

khoerling opened this issue Jan 29, 2016 · 1 comment

Comments

@khoerling
Copy link
Contributor

Is there a reason why props & state aren't used for the QueryResults? It seems to defeat the purpose of React's optimized render.

@mikemintz
Copy link
Owner

I was mimicking the API in ParseReact when I went with this.data. But I agree it doesn't feel the cleanest.

It might be cleaner with higher order components like discussed in #8 but that has its own downsides. I'm definitely open to any suggestions for a more appropriate model.

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

No branches or pull requests

2 participants