Skip to content

Application state history#54

Draft
aidenybai wants to merge 4 commits intomainfrom
cursor/application-state-history-0b50
Draft

Application state history#54
aidenybai wants to merge 4 commits intomainfrom
cursor/application-state-history-0b50

Conversation

@aidenybai
Copy link
Owner

Add history-test.ts to enable time-travel debugging for React components by snapshotting and rewinding stateful hooks and class component states.

This solution instruments bippy to capture snapshots of React component states (stateful hooks and class component states) on each commit. It leverages React DevTools' internal APIs (overrideHookState for hooks and direct state mutation with forceUpdate for class components) to reliably restore previous states, mirroring how React DevTools performs "time travel". A global __BIPPY_HISTORY__ controller is exposed for interaction. This feature is intended for development environments only due to its reliance on internal React APIs.


Open in Cursor Open in Web

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

cursor bot commented Jan 29, 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 29, 2026

⚠️ No Changeset found

Latest commit: 314ba11

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 29, 2026

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

Project Deployment Actions Updated (UTC)
bippy Ready Ready Preview, Comment Jan 29, 2026 9:19pm

Co-authored-by: aiden <aiden@million.dev>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 29, 2026

Open in StackBlitz

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

commit: 314ba11

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

2 participants