omniscientjs / immstruct

Immutable data structures with history for top-to-bottom properties in component based libraries like React. Based on Immutable.js
374 stars 21 forks source link

Distinction between 'swap' and 'change' events. #63

Closed jtremback closed 9 years ago

jtremback commented 9 years ago

Have not been able to figure out the whole story on the swap event from the documentation.

dashed commented 9 years ago

They're the same now.

Documentation on conventions are now outdated.

change: When data/value is updated and it existed before swap: When cursor is updated (new information is set). Emits no values. One use case for this is to re-render design components

mikaelbr commented 9 years ago

There is a difference between the current released stable, and master. So the docs is for the dist-files (or current latest), but should be updated soon when Immstruct 2.0.0 is released (some breaking changes).

mikaelbr commented 9 years ago

Fixed in #76