Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ember.js 余烬数据和手触式递归_Ember.js_Ember Data_Handsontable - Fatal编程技术网

Ember.js 余烬数据和手触式递归

Ember.js 余烬数据和手触式递归,ember.js,ember-data,handsontable,Ember.js,Ember Data,Handsontable,当一个Handsontable被实例化时,它调用一个递归方法来构建一个数据模式:,该模式依次调用objectEach: 然而,对于一个余烬数据记录,它试图迭代像store这样的属性,这意味着它陷入了一个无休止的循环中 有什么方法可以绕过递归DuckSchema方法吗?除非Handsontable有一些接口,允许在数据到达插件核心之前对其进行预解析,否则我想说,通过将余烬数据模型转换成handsometable能够理解的东西,您可能会有更好的运气 let queryParams = //Your

当一个Handsontable被实例化时,它调用一个递归方法来构建一个数据模式:,该模式依次调用
objectEach

然而,对于一个余烬数据记录,它试图迭代像
store
这样的属性,这意味着它陷入了一个无休止的循环中


有什么方法可以绕过递归DuckSchema方法吗?

除非Handsontable有一些接口,允许在数据到达插件核心之前对其进行预解析,否则我想说,通过将余烬数据模型转换成handsometable能够理解的东西,您可能会有更好的运气

let queryParams = //Your query params
let data = this.get('getTheContent'); //Your models
let handsomeData = data.map(function(item, index, enumerable)){
   return { id: item.get('id'), name: item.get('name'), other: item.get('other') }
};
// Result is [{id: 1, name: 'John', other: 'Other'}, {...}]