Skip to content

docs: update how to reset state guide#3187

Merged
dbritto-dev merged 1 commit into
mainfrom
dbritto-dev-patch-1
Jul 20, 2025
Merged

docs: update how to reset state guide#3187
dbritto-dev merged 1 commit into
mainfrom
dbritto-dev-patch-1

Conversation

@dbritto-dev

Copy link
Copy Markdown
Collaborator

Check List

  • pnpm run fix for formatting and linting code and docs

@dbritto-dev dbritto-dev requested a review from Copilot July 20, 2025 13:51
@dbritto-dev dbritto-dev self-assigned this Jul 20, 2025
@dbritto-dev dbritto-dev added the bug Something isn't working label Jul 20, 2025
@vercel

vercel Bot commented Jul 20, 2025

Copy link
Copy Markdown

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 20, 2025 1:51pm

@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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the "how to reset state" documentation guide to simplify the examples and modernize the demo links. The changes focus on making the guide more concise while demonstrating the same reset functionality.

  • Simplified the basic example by removing the full store implementation and focusing on the reset pattern
  • Replaced the removed initialState variable with direct calls to store.getInitialState()
  • Updated demo links from CodeSandbox to StackBlitz and reduced from 3 to 2 examples

Comment thread docs/guides/how-to-reset-state.md
Comment thread docs/guides/how-to-reset-state.md
@pkg-pr-new

pkg-pr-new Bot commented Jul 20, 2025

Copy link
Copy Markdown

demostarter

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

commit: 3825e47

@github-actions

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 12.6 kB

ℹ️ 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.mjs 320 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.js 336 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

@dbritto-dev dbritto-dev merged commit 41fed0f into main Jul 20, 2025
32 checks passed
@dbritto-dev dbritto-dev deleted the dbritto-dev-patch-1 branch July 20, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants