制表符:React 格式器:需要 'dispose' 处理程序才能正确实现

Tabulator: React formater: need 'dispose' handler for a correct implementation

react-tabulator is a library providing an integration of Tabulator in React. Their solution to render a React component within a Tabulator formater uses this function. However, I don't think this is 100% correct, because based on the React doc on integrating React w/ plain JS, ReactDOM.unmountComponentAtNode() needs to be called on dispose in order to to some cleanup. I also communicated this to the author within a GitHub issue,也许他会提供更多信息。

我的问题:是否有 hook/handler/way 在处理单元格时接收通知? 1) 这将允许我调用上述方法,以便 React 可以进行一些清理。 2) 这也为利用 React 门户的替代方法开辟了道路。

提前致谢!

我在 this gist 中使用门户创建了一个实现。这是故事书的页面。我在我的项目中使用 semantic-ui-react,因此文件的 copy/paste 可能需要调整。

不知道上千个传送门可不可以。 IE。每个细胞一个。此外,我没有看到 "dispose" 门户网站有任何操作。我希望在呈现门户的位置放置 DOM 元素就足够了。否则 => 我认为可能会发生内存泄漏。