himself65's repos on GitHub
TypeScript · 54 人关注
affine-minimum
build AFFiNE in minimum code and the most modern way
TypeScript · 22 人关注
big-watermelon
合成大西瓜
Kotlin · 8 人关注
astoria
Himself65 offical website backend part based on Koa.js
C# · 4 人关注
BioArmy
Unfinished unity game code backup from 2018
TypeScript · 2 人关注
affine-waku
experimental project for affine & waku
TypeScript · 2 人关注
ai
Build AI-powered applications with React, Svelte, Vue, and Solid
JavaScript · 2 人关注
better-zhihu
zhihu Chrome extension
2 人关注
blocksuite-adapter
Vue · 2 人关注
blocksuite-vue
1 人关注
2023-react-advanced
Rust · 1 人关注
996.ICU
Repo for counting stars and contributing. Press F to pay respect to glorious developers.
TypeScript · 1 人关注
AFFiNE
There can be more than Notion and Miro. AFFiNE is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
Vue · 1 人关注
AFFiNE.pro
AFFiNE official website, source for affine.pro
C# · 1 人关注
At-Before
1 人关注
awesome-json
A curated list of awesome JSON libraries and resources.
1 人关注
awesome-os
A list of operating systems and stuff
TypeScript · 1 人关注
blocksuite
💠 BlockSuite provides building blocks for collaborative applications.
JavaScript · 0 人关注
996.TSC
996.ICU周边文化 | 创意板块(主站:996.ICU)
TypeScript · 0 人关注
affine-cla-action
AFFiNE CLA action
Vue · 0 人关注
affine-infra-slide
CSS · 0 人关注
affine-public-workspace-proxy
0 人关注
AOE4-AdvancedGameSettings
Game mode that allows more customization over standard game rules in Age of Empires IV
TypeScript · 0 人关注
api
Promise and RxJS APIs around Polkadot and any Substrate-based chain RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata. Full documentation & examples available
0 人关注
async-cache-dedupe
Async cache with dedupe support
TypeScript · 0 人关注
async-call-rpc
A lightweight JSON RPC client & server
Shell · 0 人关注
autopatch-webhook
0 人关注
awesome-lit
A curated list of awesome Lit resources.
0 人关注
BetterZhihu
0 人关注
bigwatermelon
合成大西瓜源码,修改版
himself65

himself65

V2EX 第 470184 号会员,加入于 2020-02-19 16:50:08 +08:00
I’m just a nobody. Please don't be mad because of a stranger on net.
根据 himself65 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
himself65 最近回复了
同意#15 的观点,你这个 React 用法是有问题的,你需要把 processor 的初始化放在 React 外面。举个例子

```ts
const processor = buildProcessor()
const Component =() => {}
```

如果不能 SSR 那就判断一下 typeof window === "undefined"。
如果是一个异步,包一个 use(promise)

useEffect 是连接外部状态的一个 hook ,那这个东西来初始化整个数据其实是不符合 React 的思路

https://react.dev/reference/react/useEffect#connecting-to-an-external-system

那这个举例,server 是 React UI 之外的已经有的东西,connection 才是 useEffect 去 establish 的事情
可以试试 lit 。
个人感觉大部分库对于 shadow dom 的支持还是很差的,
作为在美国的来提点建议
1. 租车,除非你在像芝加哥、纽约这种大城市(公共交通间隔短且可以到达任何地方),如果你在西海岸,出门逛街吃饭一定要有个车,不然特别特别远,Uber 打车三四回也抵得上租一天车了。一般我推荐 Avis 。用国内驾照就可以租车(还需要给美国固定的地址和名字一样的信用卡)
2. 保险,租车保险医疗保险都得买上
3. 电话卡,Google Fi 这种比较简单,当然去 Best Buy 这种店也能买到电话卡
4. 付款,绝大多数店都支持 Apple Pay ,绑定 visa 或 master card 就行。也可在线下银行柜台办一张储蓄卡就能用( p.s. 储蓄卡不能拿来租车)
5. 多买点零食放冰箱,如果不是大城市,晚上不会有餐厅开门的,24 小时超市一般也很远
255 天前
回复了 Livid 创建的主题 DOS 在 M1/M2 Mac 上完美运行 DOS 游戏
@reallynyn 帝国时代 4 用了 AVX 指令集,是无法模拟的
@Slurp 谢谢,我们项目用的是 graphql
336 天前
回复了 lyc575757 创建的主题 分享创造 一个增强 console.log 可读性的 Vite 插件
这个 idea 不错,我提出几个建议:

1. 用 SWC 或者 babel 实现
2. 自定义 transform 的函数,因为实际生产环境大都是包装了一层 console.log ,比如( npm/debug 之类的)
2023-04-10 02:38:21 +08:00
回复了 Outshine 创建的主题 Next.js 关于 next.js 13 请求封装的最佳实践的疑问
swr 是一个网络无关的异步数据获取库,你可以拿来跑任何异步函数。
在你说的这个例子里面,你可以在顶层写一个 fetcher(key),包装了 fetch api ,然后三个部分都可以间接 /直接调用这个 API
2023-03-26 01:13:54 +08:00
回复了 djyde 创建的主题 程序员 28 岁,我还想生猛下去
大佬
2023-03-19 13:02:34 +08:00
回复了 himself65 创建的主题 程序员 被前 cofounder 骚扰
补充一下这人相关评价,让后面的人防止踩坑

https://www.ratemyprofessors.com/professor/2466282
2023-03-06 03:32:20 +08:00
回复了 Parker0 创建的主题 React React 小白学习过程中遇到技术问题
React 18.3.0 出了 OffScreen 组件之后,useEffect 不再保证空 deps 下只调用一次了,StrictMode 就是让告诉你不要瞎用这个 hook
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4015 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 10:22 · PVG 18:22 · LAX 03:22 · JFK 06:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.