arvinxx / dumi-theme-antd-style

dumi-theme for antd-style site
https://dumi-theme-antd-style.arvinx.com
MIT License
75 stars 37 forks source link

👑 [需求] 需要有一个配置项,可以控制StrictMode的启用 #33

Closed Landon-CN closed 1 year ago

Landon-CN commented 1 year ago

🥰 需求描述

主题默认使用了React StrictMode包括内容 代码在: https://github.com/arvinxx/dumi-theme-antd-style/blob/master/src/layouts/DocLayout/index.tsx#L68 但是我们内部的依赖短时间内无法升级到最新的能力,导致组件行为出现了一些异常,需要关闭StrictMode

🧐 解决方案

增加一个控制项,可以手动关闭 StrictMode

🚑 其他信息

image

arvinxx commented 1 year ago

生产环境下 StrictMode 应该会自动关闭的吧?

Landon-CN commented 1 year ago

但是在开发的时候导致组件行为异常,开发环境强制开启Production模式我感觉好奇怪

arvinxx commented 1 year ago

但是在开发的时候导致组件行为异常,开发环境强制开启Production模式我感觉好奇怪

我去掉吧先

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 0.21.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: