Skip to content

Avoid inferring action type when explicit action name is provided #3147

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vchirikov
Copy link

Summary

#2987 Added call findCallerName() which tries to infer action name from error's callstack even when user explicitly provided action name (nameOrAction or anonymousActionType). I think it's much better to call findCallerName ONLY if user didn't provide anything we can use.

Check List

  • pnpm run fix for formatting and linting code and docs

Copy link

vercel bot commented Jun 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zustand-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2025 7:47am

Copy link

codesandbox-ci bot commented Jun 7, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

pkg-pr-new bot commented Jun 7, 2025

demostarter

npm i https://pkg.pr.new/zustand@3147

commit: a9a2598

Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dai-shi dai-shi added this to the v5.0.6 milestone Jun 8, 2025
@IDisposable
Copy link

I just came here to make the exact same comment. :shipit:

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.

3 participants