You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,17 @@
1
1
# react-grid-gallery
2
2
3
+
### v0.2.0 / 2016-09-03
4
+
5
+
* Construction of thumbnail images and image rows removed from render. Thumbnails and rows now only rebuilt when container size changes.
6
+
7
+
*`selectedImages` state now set via props change.
8
+
9
+
*`onSelectedImagesChange` callback now called directly from `onToggleSelected` rather than `componentWillUpdate`. Perviously, a combination of setting `selectedImages` state and triggering `onSelectedImagesChange` when `componentWillUpdate` due to that state change caused a double render.
10
+
11
+
* Internal image access now via state instead of props.
12
+
13
+
* Thumbnail generation now atomic function rather than whole array at once.
14
+
3
15
### v0.1.14 / 2016-08-22
4
16
5
17
*`selectedImages` state set on `componentWillReceiveProps` allowing selections from outside component to trigger state update.
Copy file name to clipboardExpand all lines: lib/Gallery.js
+49-47
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
22
22
23
23
function_inherits(subClass,superClass){if(typeofsuperClass!=="function"&&superClass!==null){thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor: {value: subClass,enumerable: false,writable: true,configurable: true}});if(superClass)Object.setPrototypeOf ? Object.setPrototypeOf(subClass,superClass) : subClass.__proto__=superClass;}
24
24
25
-
varupdate=require('react-addons-update');
26
-
27
25
varGallery=function(_Component){
28
26
_inherits(Gallery,_Component);
29
27
@@ -33,6 +31,8 @@ var Gallery = function (_Component) {
0 commit comments