V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  wpzz  ›  全部回复第 2 页 / 共 4 页
回复总数  64
1  2  3  4  
49 天前
回复了 wpzz 创建的主题 投资 黄金价格起飞啦,大伙的房产还好吗
@LxExExl 你们那边物价没上涨嘛,从年前到现在。
49 天前
回复了 wpzz 创建的主题 投资 黄金价格起飞啦,大伙的房产还好吗
@mianlaodie 这个金价是 XAU 国际金价,综合看,人民币美元汇率波动不大,那么全球大资产应该都是在缩水的。
55 天前
回复了 Asuler 创建的主题 React 请教一个 react hook 的问题
useEffect 不要这么写,如果里面代码量上来了,refs [] 会监听超级多变量和函数。

这里面函数又套了 useCallback ,维护会爆炸。
@lambdaq 卖她 lululemon
专注后端吧,职业厚度比前端好
去吧,年轻人有几回能够, [独立的、有钱的、有时间的、有朋友的] 一起出去玩。

这几个条件放到都是奢侈

再说安全问题,直接买个 airtag 放包里,每晚报备一下不就好了
选二手 M1 32G ,1 万出头
我在丽江玩了一个多月,高原要防晒,紫外线很猛

丽江呆久了确实好玩,束河古镇、白沙古镇、玉龙雪山一天不够的,早上出发,傍晚回。第二天还要去泸沽湖太赶了。

丽江往上走
香格里拉也好玩,普达措、独克宗古城、松赞林寺。可以试试牦牛肉火锅

丽江往下走大理
洱海西线可以骑自行车,那边建了生态长廊。
洱海东线可以租车自驾,小普陀、双廊古镇。
你这个时间太赶了吧
107 天前
回复了 wpzz 创建的主题 前端开发 主流跨平台开发对比
@miniliuke 好也自渲染,坏也自渲染.
好在不用 JSB 调度多一层,性能确实快一点
坏在没有原生操作体验...如滚动
107 天前
回复了 hanierming 创建的主题 问与答 QQ 音乐,重新定义概率学
相当于 12 次抛硬币全是正面 hhhh
109 天前
回复了 gyinbj 创建的主题 程序员 桌面软件开发求助
@windstyle2 flutter 跨 mac&win 没有 electron 好开发,主要是社区不太够打。
我从黑果换到白果,系统调度更稳定一点。

黑果的系统兼容性比较差,比如关机自动重启,蓝牙连接,usb 识别等,能用,但是不太稳。

内存得 32g 起步,跑虚拟机占用高,16g 不够吃满会很卡。
@lynan 哈哈哈哈 因为效果设置到导航栏了,还会跟随滚动计算背景模糊,我说怎么这么卡😂
@okakuyang flutter ios
139 天前
回复了 dcsuibian 创建的主题 React 搞不懂 useState 为什么会这么设计?
@wpzz 是这里吧,filber 并发更新。

// If a render is in progress, and we receive an update from a concurrent event,
// we wait until the current render is over (either finished or interrupted)
// before adding it to the fiber/hook queue. Push to this array so we can
// access the queue, fiber, update, et al later.
const concurrentQueues: Array<any> = [];
let concurrentQueuesIndex = 0;

let concurrentlyUpdatedLanes: Lanes = NoLanes;


而且开发模式下不太准, 源码中有很多地方判断了__DEV__
139 天前
回复了 dcsuibian 创建的主题 React 搞不懂 useState 为什么会这么设计?
"
If something is offscreen, we can delay any logic related to it. If data is arriving faster than the frame rate, we can coalesce and batch updates. We can prioritize work coming from user interactions (such as an animation caused by a button click) over less important background work (such as rendering new content just loaded from the network) to avoid dropping frames.

To be clear, we are not taking advantage of this right now. However the freedom to do something like this is why we prefer to have control over scheduling, and why setState() is asynchronous. Conceptually, we think of it as “scheduling an update”.
"

如果某些内容在屏幕外,我们可以延迟与其相关的任何逻辑。如果数据到达速度快于帧速率,我们可以合并并批量更新。
1  2  3  4  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2497 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 39ms · UTC 15:29 · PVG 23:29 · LAX 08:29 · JFK 11:29
Developed with CodeLauncher
♥ Do have faith in what you're doing.