Gcaufy
Gcaufy
> 调用setData发送已经更新过的props数据,因此也产生了大量无效调用。 这里是的,父组件数据修改时,同时也会触发子组件 props 的数据 setData。是我一开始理解的子组件的数据得单独去 setData. 那这里我们后面再看看如何去优化。 > 且diff精度不足,发送的数据量也较大 这里发送的数据量较大我理解应该是指额外的 props setData 吧,我简单看了一下, mpx 应该是在 setData 进行 diff 计算的,但是 WePY 本身没有 diff 计算,是通过数据劫持时, set 数据时,自动收集 diff 的。因此这里说的 diff 精度不足就不太了解了。最终...
精力比较有限,现阶段还不支持的。 不过欢迎PR.
有没有代码,我去还原一下这个问题。
页面 styl 是怎么写的呢?
PR welcomed Ref: https://github.com/jescalan/autoprefixer-stylus https://github.com/stylus/stylus/blob/dev/docs/js.md#usefn https://github.com/Tencent/wepy/blob/master/packages/compiler-stylus/index.js#L28
使用图片压缩时需要安装这个,如果不需要使用图片压缩可以把 wepy-plugin-imagemin 的依赖去掉就好了。
https://github.com/monlor/Monlor-Tools/blob/7a303dc9fc8cab5abc8522e69725f464eae16cfb/apps/zerotier/script/zerotier.sh#L22 看到这里,然后 `export networkid=xxxxxxx` 就可以了
但是zerotier似乎有问题,无法使用 ``` root@XiaoQiang:/opt# zerotier-cli Bus error (core dumped) ```
有运行的二维码可以体验 吗?
just FYI: try to enable grpc trace log, you will receive more connection details ``` GRPC_VERBOSITY=DEBUG GRPC_TRACE=all npm run start ``` 