We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
develop
v22.11.0
latest(v2.3.0-rc.0)
none
Collection
getAllList
TinyGrid
经排查,问题发生在:packages/canvas/render/src/RenderMain.ts;
如上图所示,在浏览器标签页加载时,setSchema(window.host.getSchema()) 会先于 setDataSourceMap(data) 执行,导致 getDataSourceMap 先于 setDataSourceMap 执行,从而引发 undefined.
setSchema(window.host.getSchema())
setDataSourceMap(data)
该问题的内部作用机制我不清楚,但发现了一个可以“规避”的方法:使用 setTimeout 改变 setSchema(window.host.getSchema()) 的触发时机,这样就不会报错了。但这种方式并不好,希望各位大佬能看看怎么优雅的解决。
setTimeout
.
No response
The text was updated successfully, but these errors were encountered:
@chilingling Thank you so much!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Environment
develop
Version
v22.11.0
Version
latest(v2.3.0-rc.0)
Link to minimal reproduction
none
Step to reproduce
Collection
组件,然后绑定一个已存在的数据源,比如:getAllList
;Collection
中拖入一个TinyGrid
组件;经排查,问题发生在:packages/canvas/render/src/RenderMain.ts;
如上图所示,在浏览器标签页加载时,
setSchema(window.host.getSchema())
会先于setDataSourceMap(data)
执行,导致 getDataSourceMap 先于 setDataSourceMap 执行,从而引发 undefined.该问题的内部作用机制我不清楚,但发现了一个可以“规避”的方法:使用
setTimeout
改变setSchema(window.host.getSchema())
的触发时机,这样就不会报错了。但这种方式并不好,希望各位大佬能看看怎么优雅的解决。What is expected
.
What is actually happening
.
What is your project name
none
Any additional comments (optional)
No response
The text was updated successfully, but these errors were encountered: