Skip to content

fix(react): useCallback for getSnapshot#3192

Merged
dai-shi merged 1 commit intomainfrom
fix/react/use-callback
Jul 31, 2025
Merged

fix(react): useCallback for getSnapshot#3192
dai-shi merged 1 commit intomainfrom
fix/react/use-callback

Conversation

@dai-shi
Copy link
Copy Markdown
Member

@dai-shi dai-shi commented Jul 28, 2025

Related Bug Reports or Discussions

Fixes #971 (reply in thread)

Summary

Micro optimization for stable selectors.

@vercel
Copy link
Copy Markdown

vercel bot commented Jul 28, 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 Jul 28, 2025 1:25am

@codesandbox-ci
Copy link
Copy Markdown

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.

@github-actions
Copy link
Copy Markdown

Size Change: +39 B (+0.31%)

Total Size: 12.6 kB

Filename Size Change
./dist/esm/react.mjs 340 B +20 B (+6.25%) 🔍
./dist/react.js 355 B +19 B (+5.65%) 🔍
ℹ️ View Unchanged
Filename Size
./dist/esm/index.mjs 64 B
./dist/esm/middleware.mjs 3.86 kB
./dist/esm/middleware/immer.mjs 212 B
./dist/esm/react/shallow.mjs 198 B
./dist/esm/shallow.mjs 82 B
./dist/esm/traditional.mjs 411 B
./dist/esm/vanilla.mjs 403 B
./dist/esm/vanilla/shallow.mjs 546 B
./dist/index.js 244 B
./dist/middleware.js 3.87 kB
./dist/middleware/immer.js 231 B
./dist/react/shallow.js 213 B
./dist/shallow.js 189 B
./dist/traditional.js 423 B
./dist/vanilla.js 416 B
./dist/vanilla/shallow.js 558 B

compressed-size-action

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Jul 28, 2025

demostarter

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

commit: f2386b5

@dai-shi dai-shi added this to the v5.0.7 milestone Jul 30, 2025
@dai-shi dai-shi merged commit 5aa923e into main Jul 31, 2025
32 checks passed
@dai-shi dai-shi deleted the fix/react/use-callback branch July 31, 2025 00:06
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.

1 participant