Skip to content

Conversation

@aidenybai
Copy link
Owner

Add freeze and isFreezeActive functions to block React state updates.

Initial attempts to freeze updates by patching dispatchers were insufficient because React components capture their dispatch functions during the initial render, making them referentially stable. The revised implementation intercepts updates at the queue.pending level within each hook's queue, preventing updates from being enqueued. It also patches dispatchers to ensure new components mounted while frozen also respect the freeze.


Open in Cursor Open in Web

Co-authored-by: aiden <aiden@million.dev>
@cursor
Copy link

cursor bot commented Jan 4, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@changeset-bot
Copy link

changeset-bot bot commented Jan 4, 2026

⚠️ No Changeset found

Latest commit: 5dff70b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link

vercel bot commented Jan 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
bippy Ready Ready Preview, Comment Jan 4, 2026 1:53am

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 4, 2026

Open in StackBlitz

npm i https://pkg.pr.new/bippy@46

commit: 5dff70b

Co-authored-by: aiden <aiden@million.dev>
Co-authored-by: aiden <aiden@million.dev>
Rename freeze functionality to pause, update internal state names, and move tests to a new file.

Co-authored-by: aiden <aiden@million.dev>
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