You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone -b for-custom-tabbar-bug https://github.com/sunxiuguo/HeadhuntingNote.git
yarn install
npm run dev:weapp
编译成功后, 进入首页,会直接报错,并且切换tab时,tab的selectedIcon不能正确展示
VM873:1 The above error occurred in the <customTabBar> component:
in customTabBar (created by inject-with-store(customTabBar))
in inject-with-store(customTabBar) (created by Page)
in root (created by Page)
in Page (created by AppWrapper)
in MobXProvider (created by App)
in App (created by AppWrapper)
in AppWrapper
React will try to recreate this component tree from scratch using the error boundary you provided, Page.
VM873:1 TypeError: Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
at _nonIterableSpread (vendors.js:473)
at _toConsumableArray (vendors.js:704)
at taro.js? [sm]:6688
at Array.forEach (<anonymous>)
at Object.mergePageInstance (taro.js? [sm]:6684)
at injectPageInstance (taro.js? [sm]:6265)
at inject (taro.js? [sm]:6594)
at commitAttachRef (react-reconciler.development.js:12294)
at commitLayoutEffects (react-reconciler.development.js:15327)
at Object.invokeGuardedCallbackImpl (react-reconciler.development.js:11552)
相关平台
微信小程序
复现仓库
https://github.com/sunxiuguo/HeadhuntingNote
小程序基础库: 2.11.3
使用框架: React
复现步骤
编译成功后, 进入首页,会直接报错,并且切换tab时,tab的selectedIcon不能正确展示
期望结果
tab切换行为表现正常,不报错
实际结果
tab切换时, 没有更新为对应的selectedIcon,而且报错
环境信息
The text was updated successfully, but these errors were encountered: