Skip to content
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

fix: resolve issue with delegateMiddleware using outdated context in react #598

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

MeetinaXD
Copy link
Contributor

@MeetinaXD MeetinaXD commented Nov 26, 2024

相关 Issue / Related Issue

close #596

这个 PR 是什么类型?/ What type of PR is this?

  • 错误修复 (Bug Fix)
  • 新功能 (Feature)
  • 代码重构 (Refactor)
  • TypeScript 类型定义修改 (Typings)
  • 文档修改 (Docs)
  • 代码风格更新 (Code style update)
  • 其他,请描述 (Other, please describe):

这个 PR 做了什么?/ What does this PR do?

fix the issue with delegateMiddleware using outdated context in react

文档 / Docs

Added a hook counter to delegateMiddleware, so that the context is updated to the correct position when the state is updated.

测试 / Testing

ALL tests passed :)

Copy link

changeset-bot bot commented Nov 26, 2024

🦋 Changeset detected

Latest commit: 616961b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
alova Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JOU-amjs JOU-amjs merged commit 15a99af into main Nov 27, 2024
4 checks passed
@JOU-amjs JOU-amjs mentioned this pull request Nov 27, 2024
@MeetinaXD MeetinaXD deleted the fix/delegate-miiddleware branch November 27, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: useWatcher actionDelegate 触发时使用的不是最新的依赖
2 participants