KKazooTTTinkazoottt.hashnode.dev·Jan 19, 2025 · 3 min readhow to generate the path like router config in vite + react + react-router projectwhen i use react-router and vite, i want to config my router in the router.config.ts file and also generate some config for the target path dir. (like the nextjs router which is automatically generated based on the file structure) config the router i...00
KKazooTTTinkazoottt.hashnode.dev·Dec 17, 2024 · 2 min read分享一下我的zustand错误使用案例什么是 zustand? zustand 是一个状态管理库,简单易用。 在使用 react-scan 的时候,我发现我在 A 组件中对于 store 的某个 state 的更新,导致了 B 组件的重新渲染,有比较严重的性能问题。 于是我又重新阅读了文档,发现我之前对于 zustand 的使用是错误的。 错误用法 1 没有使用 single selector 或者 shallow 去获取 state 这是之前的写法以及对应的组件,useGlobalStore 中有不只 uploadToServer...00
KKazooTTTinkazoottt.hashnode.dev·Dec 15, 2024 · 2 min read使用google sheet + api定时获取油管播放量起因是想要记录一下 milklove 的二搭剧 Whale Store xoxo 在油管上的预告片的播放量的 คุณวาฬร้านชำ (Whale Store xoxo) | GMMTV 2025 - YouTube 于是先搜了一下有没有可以直接使用的开源项目或者接口,然后在 批量统计YouTube视频播放量方法 - 杨哥的出海营销笔记 这篇文章中了解到了可以使用 google sheet 的 apps 脚本 直接获取油管的播放量。 不过这篇文章中的脚本更多的获取当前的播放量,而不是定时获取,...00
KKazooTTTinkazoottt.hashnode.dev·Dec 11, 2024 · 1 min readraycast + imessage 2fa,快速获取验证码很久之前做过一个 messauto 的安利 MessAuto + iMessage 实现iPhone和mac信息同步和自动复制验证码 但是最近收到评论才发现作者在前段时间删库了 目前找到另一个快速获取验证码的方法,就是 raycast + imessage 2fa 插件。 使用方法: 在获取到验证码之后,访问 imessage 2fa 插件。 可以看到目前接收到的含有验证码的消息,敲回车复制验证码到粘贴板。 缺点:没有 messauto 方便,多了访问 imessage 2fa 插...00
KKazooTTTinkazoottt.hashnode.dev·Nov 30, 2024 · 4 min read使用github action定时同步obsidian内容到astro博客仓库github action 目标仓库以及具体目录可以根据自己的项目来定 name: Update Docs on: push: paths: - "content/**" - "scripts/build_docs.cjs" workflow_dispatch: jobs: build-and-deploy: runs-on: ubuntu-latest steps: - name: Checkout source r...00