Brendan Dash
Brendan Dash
如果加一个参数的话是不是会有点麻烦,设置 manual: true 后,导出的值是不是会变化,是不是会覆盖原本的用法,如这个 useManualHistoryTravel 我既想用 setState 又想用 commit,是我在设置 true 后才会有这个 commit 导出
是的,我这个 useManualRefHistory, 就是用原有的 [useHistoryTravel](https://ahooks.js.org/zh-CN/hooks/use-history-travel) 来实现的。https://codesandbox.io/s/ahooks-issue-2272-cpkh7s 这个不是我想要的需求,我想要这个 state 是需要关心的数据用 value 来记录, https://codesandbox.io/s/ahooks-issue-2272-forked-4gn284 ,我当前是添加一个 useEffect 实现的,感觉有一些复杂。所以我才需要添加一个 hook,如果你认为没有必要就算了
我的需求是 back 和 forward 只记录 commit 调用后的数据,在调用 commit 后才会记录当前的状态,https://codesandbox.io/s/ahooks-issue-2272-demo2-h2l2t8?file=/App.tsx:119-127 但是这里例子把所有的 setState 的值都记录了。https://github.com/Debbl/svg-drawing 这个是写的一个小项目,我需要在鼠标移动是添加 line 并且更新 lines,在鼠标抬起时记录当前的 lines 数据。下面是我自己写的一个 hook。 ```ts import { useHistoryTravel } from "ahooks"; import { useEffect, useMemo,...
@liuyib 你有空可以看一下,辛苦了
I tried it's working on React 19. In React 18, when strict mode is enabled, it seems that `console` in the `useEffect` are not being override. Below is the source...
It looks like the rollup build two of the same type.
@Jaakkonen hi, I created [unplugin-lingui](https://github.com/Debbl/unplugin-lingui), maybe you can give it a try.
hi @shadcn > https://ui.shadcn.com/r/styles/new-york-v4/button.json Most registries for example animate-ui rely on the `target` field to determine where components are generated, and many of them don’t include theme variables. This creates...
The `@jimp/wasm-webp` doesn't seem to work in `node` environment.