Skip to content
New issue

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

🤔 表格渲染后,有没有对应的生命周期方法呢 #1568

Closed
feEden opened this issue Jul 15, 2022 · 4 comments
Closed

🤔 表格渲染后,有没有对应的生命周期方法呢 #1568

feEden opened this issue Jul 15, 2022 · 4 comments
Assignees
Labels
🐛 bug 这个是一个 bug ❔question 疑问/使用问题 s2-react React 组件层问题

Comments

@feEden
Copy link

feEden commented Jul 15, 2022

🖋 Description

查看interface,发现存在onAfterRender, onBeforeRender, 但是并不会执行

😊 Expected Behavior

希望,表格render完之后,能有个生命周期回调函数

😅 Current Behavior

onAfterRender, onBeforeRender 没有执行

https://codesandbox.io/s/eager-glade-bwtyvf?file=/index.tsx

@feEden feEden added the ❔question 疑问/使用问题 label Jul 15, 2022
@feEden feEden closed this as completed Jul 18, 2022
@lcx-seima lcx-seima added 🐛 bug 这个是一个 bug s2-react React 组件层问题 labels Jul 18, 2022
@github-actions
Copy link
Contributor

你好 @feEden,很抱歉给你带来了不好的体验, 我们会尽快排查问题并修复, 请关注后续发布日志.

Hello, @feEden, We are so sorry for the bad experience. We will troubleshoot and fix the problem as soon as possible. Please pay attention to the follow-up change logs.

@lcx-seima
Copy link
Contributor

的确第一次没有触发,后续是会触发的。
简单看了下和内部绑定事件的顺序有关。是个 BUG。

@lcx-seima lcx-seima self-assigned this Jul 18, 2022
@lcx-seima
Copy link
Contributor

目前,如果想在第一次渲染时回调,可以试试 props.getSpreadSheet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug 这个是一个 bug ❔question 疑问/使用问题 s2-react React 组件层问题
Projects
None yet
Development

No branches or pull requests

2 participants