We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd799e7 commit e78d598Copy full SHA for e78d598
react-v16.0.0-redux-v3.7.2-keyed/src/store.es6.js
@@ -85,14 +85,14 @@ var initialState = fromJS({
85
let id = 1;
86
87
function buildData(count = 1000) {
88
- let output = [];
89
- for(let i=0;i<count;i++){
90
- output.push({
+ let output = fromJS([]);
+ new Array(count).fill(' ').forEach(() => {
+ output = output.push(fromJS({
91
id: id++,
92
label: adjectives[_random(adjectives.length)] + " " + colours[_random(colours.length)] + " " + nouns[_random(nouns.length)]
93
- });
94
- }
95
- return fromJS(output);
+ }));
+ });
+ return output;
96
}
97
98
function dataStore(state = initialState, action) {
0 commit comments