react-activation icon indicating copy to clipboard operation
react-activation copied to clipboard

react-router6页面被隐藏

Open liangzai92 opened this issue 3 years ago • 6 comments
trafficstars

image

"react": "^18.2.0", "react-router-dom": "^6.3.0", "react-activation": "^0.12.0",

页面加载出来,空白,原来是被隐藏了啊,怎么解决啊

image

liangzai92 avatar Sep 22 '22 09:09 liangzai92

可以提供用例吗?

CJY0208 avatar Sep 23 '22 02:09 CJY0208

我也有这个bug。就是项目启动默认打开 http://localhost:3000/ 然后我给重定向到首页 发现 首页是被隐藏的。或者我在访问一个不存在的页面 被拦截后 跳转到首页 此时首页也是隐藏的

Yangyang0vo avatar Sep 30 '22 14:09 Yangyang0vo

My friend, you must remove the React Strict Mode to render correctly

c-andrey avatar Nov 10 '22 11:11 c-andrey

我也遇到了 这个组件是使用的lazy包裹的,第一次加载就会遇到 第二次加载就对了

2367824249 avatar Nov 11 '22 05:11 2367824249

需要提供用例,并且需要确认没有使用严格模式 <StrictMode />

CJY0208 avatar Nov 11 '22 05:11 CJY0208