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

Manage device rooms with flux pattern using the reflux implementation #19

Merged
merged 9 commits into from
Mar 2, 2015

Conversation

larsblumberg
Copy link
Contributor

No description provided.

@larsblumberg larsblumberg force-pushed the feature/list-all-rooms branch from b5d18a6 to 5c97814 Compare March 2, 2015 16:34

var roomStore = require('stores/room');
var roomActions = require('../../../actions/room');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we can use alias instead of referring module in this way.

larsblumberg added a commit that referenced this pull request Mar 2, 2015
Manage device rooms with flux pattern using the reflux implementation
@larsblumberg larsblumberg merged commit 197d269 into master Mar 2, 2015
@larsblumberg larsblumberg deleted the feature/list-all-rooms branch March 2, 2015 17:11
@mr-mig
Copy link
Contributor

mr-mig commented Mar 3, 2015

I will double Artem's question: why do we need to specify key explicitly?

Otherwise, LGTM

@larsblumberg
Copy link
Contributor Author

@mr-mig
Copy link
Contributor

mr-mig commented Mar 3, 2015

@larsblumberg So, it's a good idea to add those keys all the time, right?

@mr-mig
Copy link
Contributor

mr-mig commented Mar 3, 2015

@larsblumberg

If no keys are provided, React uses the index in the array which is almost always better than a random key.

This quote is from here: facebook/react#1342 (comment)

So, there is no need to use index explicitly.

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.

3 participants