FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(debugger): add createTrackedSignal with reactive storm & cycle detection by deny-dz · Pull Request #367 · thetarnav/solid-devtools · GitHub

feat(debugger): add createTrackedSignal with reactive storm & cycle detection - #367

Open
deny-dz wants to merge 1 commit into
thetarnav:mainfrom
deny-dz:feat/debugger-tracked-signal
Open

feat(debugger): add createTrackedSignal with reactive storm & cycle detection#367
deny-dz wants to merge 1 commit into
thetarnav:mainfrom
deny-dz:feat/debugger-tracked-signal

Conversation

deny-dz commented Aug 22, 2026

Copy link
Copy Markdown

Summary

This PR introduces createTrackedSignal to @solid-devtools/debugger:

  • Dev-Mode Storm & Recursion Detection: Monitors signal transition counts per microtask tick. If an effect or circular reactive loop causes state transitions to exceed maxTransitionsPerTick (default: 50), it triggers diagnostic telemetry / warnings with details (StormDetails).
  • Zero Overhead in Production: Bypasses tracking in production builds (process.env.NODE_ENV === 'production') and returns standard createSignal.
  • Customizable Handlers: Supports custom onStorm telemetry callbacks or throwOnStorm: true.

Changes

  • packages/debugger/src/createTrackedSignal.ts: Implementation with tick-based counter resets and stack traces.
  • packages/debugger/src/index.ts: Re-exported createTrackedSignal, TrackedSignalOptions, and StormDetails.
  • packages/debugger/test/tracked-signal.test.ts: Vitest test suite covering normal transitions, storm loops, circular effects, and microtask boundary resets.

changeset-bot Bot commented Aug 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0afbfd2

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL