leafer-ui icon indicating copy to clipboard operation
leafer-ui copied to clipboard

react19严格模式,会报错

Open margin666 opened this issue 3 months ago • 2 comments

 React.useEffect(() => {
    const app = new App({
      view: wrapperRef.current,
      tree: { type: 'design'}, 
    });
    return () => {
      app?.destroy()
    }
  }, [])

在销毁的时候会报错Leafer TypeError: Cannot read properties of null (reading 'mode')

margin666 avatar Sep 17 '25 11:09 margin666

收到,谢谢反馈

leaferjs avatar Sep 17 '25 12:09 leaferjs

已修复,等待新版本发布

leaferjs avatar Sep 22 '25 04:09 leaferjs