Open Alloyed opened 5 months ago
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.
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)
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 atlocator/types.ts
.