Skip to content

Commit

Permalink
fix(swiper): 修复缺少ref传递导致dev环境下报错的问题
Browse files Browse the repository at this point in the history
`forwardRef` 需要接收第二个参数作为ref,`Swiper` 组件缺少这个参数传递,导致在开发环境下 React 会在 DevTools 中抛出错误
  • Loading branch information
ccweng committed Sep 28, 2024
1 parent c8512cf commit 38e677b
Show file tree
Hide file tree
Showing 2 changed files with 317 additions and 312 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
"workbox-precaching": "^6.3.0"
},
"dependencies": {
"@popperjs/core": "^2.11.8",
"@react-spring/web": "9.6.1",
"@use-gesture/react": "^10.2.10",
"ahooks": "^3.1.9",
Expand Down
Loading

0 comments on commit 38e677b

Please sign in to comment.