thetarnav / solid-devtools

Library of developer tools, reactivity debugger & Devtools Chrome extension for visualizing SolidJS reactivity graph
https://chrome.google.com/webstore/detail/solid-devtools/kmcfjchnmmaeeagadbhoofajiopoceel
MIT License
536 stars 21 forks source link

Add useCustomLocator() for non-DOM locators #302

Open Alloyed opened 5 months ago

Alloyed commented 5 months ago

All DOM-specific parts of the existing locator have been moved into their own folder, DOMLocator. existing calls to useLocator() will continue to use the DOM locator, but as an opt-in you can provide a custom locator with the same API as the DOM locator. The types your custom locator are expected to match can be found at locator/types.ts.

changeset-bot[bot] commented 5 months ago

⚠️ No Changeset found

Latest commit: 5463a46063ab57aec1c7c76dfb278a72f4dc9aa3

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](https://github.com/Alloyed/solid-devtools/new/dom-locator?filename=.changeset/smooth-countries-worry.md&value=---%0A%22%40solid-devtools%2Fdebugger%22%3A%20patch%0A---%0A%0AAdd%20useCustomLocator()%20for%20non-DOM%20locators%0A)