Skip to content

refactor: remove unnecessary type assertion in createJSONStorage#3113

Merged
dai-shi merged 2 commits intopmndrs:mainfrom
2yunseong:refactor/remove-unnecessary-assertion
May 21, 2025
Merged

refactor: remove unnecessary type assertion in createJSONStorage#3113
dai-shi merged 2 commits intopmndrs:mainfrom
2yunseong:refactor/remove-unnecessary-assertion

Conversation

@2yunseong
Copy link
Copy Markdown
Contributor

Related Bug Reports or Discussions

Fixes #

Summary

For readability, remove unnecessary type assertion in createJSONStorage().
call getStorage() in 37 line ensure that storage type(StateStorage).

Thank you :)

Check List

  • pnpm run fix for formatting and linting code and docs

@vercel
Copy link
Copy Markdown

vercel bot commented May 8, 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 May 21, 2025 0:50am

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci bot commented May 8, 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.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented May 8, 2025

demostarter

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

commit: 59e38a9

Copy link
Copy Markdown
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.

It looks good as CI passes. (we dropped some old TS versions in v5.)

@dai-shi dai-shi added this to the v5.0.5 milestone May 8, 2025
@2yunseong
Copy link
Copy Markdown
Contributor Author

Thank you for reviewing!

@dbritto-dev dbritto-dev added the enhancement New feature or request label May 21, 2025
@dai-shi dai-shi merged commit 5df8085 into pmndrs:main May 21, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants