Skip to content

fix: using ref to solve closure problems #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

jin-sir
Copy link
Collaborator

@jin-sir jin-sir commented Sep 29, 2024

变更类型

请选择以下选项以描述 PR 的类型:

  • Bug 修复(修复现有问题)
  • 新功能(添加了一个功能)
  • 代码优化(性能改进、代码重构)
  • 文档更新
  • 单测新增或修改
  • 其他(请说明):

相关问题

#495

变更内容

handler每次都赋值给handlerRef,在compareValue调用handlerRef,使得在每次调用compareValue时,调用的handler是最新的。

详细描述

对应 Previewer

@jin-sir jin-sir requested review from JackWang032, LuckyFBB, liuxy0551 and mortalYoung and removed request for JackWang032 September 29, 2024 03:44
@LuckyFBB
Copy link
Collaborator

如果现有版本有问题,建议从 3.x 修复

@LuckyFBB LuckyFBB merged commit 4efedc4 into master Oct 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants