joey
joey
const arr = new Array(5).fill(null); const rand = () => Math.floor(Math.random() * 30 + 2); function insertToArr(arr) { if (arr.filter(Boolean).length >= 5) return arr; const randVal = rand(); ~arr.indexOf(randVal) ?...
i'm facing this bug with migrate webpack to Vite. After debug . I found "__esModule" is true when use webpack5 ,but false for Vite. thus cause render error. switch to...
This is also a major problem for my team, as our page is complicated,switch tabs many times may crash the APP.
我暂时比较简单粗暴,在项目根目录加了个patches/index.js的脚本,将两处id的引用替换掉 ``` const fs = require('fs'); const path = require('path'); const node_module = path.resolve(__dirname, '../node_modules'); // code-push 去掉androidId的引用 const tobeChangedCodePushSourceCodeAddr = path.resolve(node_module, './react-native-code-push/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java'); const content = fs.readFileSync(tobeChangedCodePushSourceCodeAddr, { encoding: 'utf8'...
+1 ,延迟等组件渲染完之后可以成功。。。