privatezcoding's recent timeline updates
privatezcoding

privatezcoding

V2EX member #252610, joined on 2017-09-05 16:27:18 +08:00
privatezcoding's recent replies
Apr 29, 2024
Replied to a topic by BetterJason React 为啥这段代码会造成内存泄露啊?
我猜测你这里是因为原始网络数据本身就是个比较大的 list 。然后你又用 setInterval 每隔 300ms 用 orderby 创建新的数组。

解决方案:
1. flightClient 获取数据的时候根据 remindEndTime 和 updateTime 排序
2. setInterval 里直接对 remindEndTime 进行判断原地对数据进行处理
Apr 29, 2024
Replied to a topic by BetterJason React 为啥这段代码会造成内存泄露啊?
没有人关心从 flightClient 获取到的数据大小吗?
赶上特惠车
@Visitor233 不会是株洲的吧
@yeeyeung 内环附近都可以
Mar 5, 2021
Replied to a topic by feng32 程序员 请教 useAxios (React Hooks) 的一个使用问题
http 请求是异步的,可以尝试使用 async await 转同步,再获取 data 和 error
Jan 27, 2021
Replied to a topic by CloseToWheat Java 想学造火箭了,有说明书嘛~
字节 阿里
Mar 31, 2020
Replied to a topic by HangoX 程序员 组一台 i9-9900K 黑苹果的经验与总结
@q409195961 想问问 买单卡大概多少钱?为啥你当初不选择 BCM94360CD ?
Mar 30, 2020
Replied to a topic by HangoX 程序员 组一台 i9-9900K 黑苹果的经验与总结
@raycool 老哥 你装的是那个版本的 macOS
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1098 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 335ms · UTC 18:03 · PVG 02:03 · LAX 11:03 · JFK 14:03
♥ Do have faith in what you're doing.