Instantly share code, notes, and snippets.

@dcramer /foo.md
Last active Aug 29, 2015

Embed
What would you like to do?

Item List => Item => ItemStatusSelector

  • Need to maintain certain state in ItemStatusSelector (specifically have we "saved" the change, this is to avoid passing useless properties all over the place like itemStatusIsSaving)
  • Currenlty Item List controls item via prop, which controls item status via prop. This means we pass an onStatusChange all the way back to Item List.
  • [Re]flux seems to resolve this by using some store/action combo, but unclear if "Item" is in an "item list" store or if each item should be its own store, or how "change item status" should actually flow
@johnthedebs

This comment has been minimized.

johnthedebs commented Jan 16, 2015

Not sure I totally understand, but I think this does what you're asking: https://gist.github.com/johnthedebs/a5d15d77efe8dc4c2cb0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment