taro-hooks icon indicating copy to clipboard operation
taro-hooks copied to clipboard

bug: vue3 框架下使用useDebounce发生错误

Open zuolung opened this issue 1 year ago • 4 comments

image image

zuolung avatar Oct 09 '24 08:10 zuolung

welcome discuss in wechat:

github-actions[bot] avatar Oct 09 '24 08:10 github-actions[bot]

铁汁方便给个仓库嘛~ 信息有点少不太好定位你的问题

innocces avatar Oct 09 '24 08:10 innocces

这块还是因为嵌套的原因。 当时这个 useMemo 设计的不太好. 内容嵌套了. 导致深度 proxy 掉了。这里的 run 还得脱敏一下.

https://github.com/innocces/taro-hooks/blob/a124393bbae29ab6f153c404d84c923530a2b3a9/packages/plugin-vue/src/runtime/hooks.ts#L231

https://github.com/innocces/taro-hooks/blob/a124393bbae29ab6f153c404d84c923530a2b3a9/packages/plugin-vue/src/runtime/hooks.ts#L243

image

innocces avatar Oct 09 '24 10:10 innocces

Hello @zuolung. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please be sure to fill in the default template in the Pull Request, provide changelog/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

你好 @zuolung,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。

github-actions[bot] avatar Oct 10 '24 13:10 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 12 '24 05:12 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 04 '25 06:03 stale[bot]