type
status
date
slug
summary
tags
category
password
Date
Free
Free
Link
xhsContent
Price
xhsTitle
🌈 I feel
icon

👟 Articles


📖 Title: React新的hook, use
👍 Some Contents
  • 可以在条件里面使用hook
notion image
  • 包一层获取一部数据的Promise, fullfill后自动setState并且更新页面UI
💡
可以在条件里面使用hook,包一层获取一部数据的Promise, fullfill后自动setState并且更新页面UI
 
👍 Some Contents
notion image
💡
使用node:dgram发送UDP数据包,并且使用缓存锁+dnsresolve4来缓存dns解析
 
📖 Title: Avoid This Mistake When Caching Asynchronous Results
👍 Some Contents
  • 使用Promise实现锁来防止缓存踩踏
notion image
💡
使用Promise实现锁来防止缓存踩踏
 
📖 Title: UI Interactions & Animations Roundup #26
👍 Some Contents
notion image
💡
dribble上一些看的动效集合
 
📖 Title: Dark mode UI design best practices
👍 Some Contents
  • Avoid using saturated colors
notion image
  • Communicate elevation with lighter surfaces
notion image
💡
DarkMode的优点是减缓视觉疲劳和在OLED的显示屏幕上可以省电(通过关闭黑色像素有机发光二极管像素) 缺点:阅读体验,专注度还是没有白色模式浩 设计DarkMode时需要注意: 1. 避免使用高饱和度的颜色 2. 通过亮度+阴影大小来表示高度,越高的地方受光多所以理应更亮 3. 避免使用纯白和纯黑
 
📖 Title: Optimize long tasks
👍 Some Contents
  • Yield to the main thread for critical, user-facing tasks.
  • Use isInputPending() to yield to the main thread when the user is trying to interact with the page.
  • Prioritize tasks with postTask().
💡
基于Promise+setTimeout实现任务的yield, 把主线程交给更重要的输入/交互事件(通过navigator.scheduling.isInputPending()来判断),然后对任务taskQueue进行schedule; 也可以利用scheduler.postTask来进行任务调度,自带"user-blocking""user-visible""background"三种优先级配置
notion image
 

❣️ Quote


「生命之所以有趣,皆因我们虽失去许多东西,但亦得回许多东西。有欢欣雀跃的时刻,亦有神伤魂断的日子。」
From: 黄易

📱 Products


🍞 name: 开源win11-React
📖 desc:
notion image
 
🍞 name: excalidraw自动转PPT
📖 desc: 生成的PPT挺好看的,还带交互全屏等
notion image
 
🍞 name: excalidraw自动转动画
📖 desc: excalidraw转动画工具 很Nice,还有绘制过程
notion image
 
🍞 name: CS-Books 涵盖前端后端机器学习网络操作系统等
📖 desc: 涵盖前端后端机器学习网络操作系统等的书籍📚
notion image
 

💻 Snippets

  • Chrome打开rendering调试可以看重排重绘情况
notion image