-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STCOR-932 implement useModuleFor(path) to map path -> module #1578
base: master
Are you sure you want to change the base?
Conversation
Query discovery to retrieve information about the module implementing a given endpoint. Simple usage: ``` const { module } = useModuleFor('/path'); // { name: 'mod-foo', ... } ``` Refs STCOR-932
Bigtest Unit Test Results189 tests ±0 184 ✅ ±0 6s ⏱️ ±0s Results for commit 1644c97. ± Comparison against base commit 93297f6. This pull request removes 5 and adds 3 tests. Note that renamed tests count towards both.
|
Quality Gate passedIssues Measures |
Pedantic, Also needs a top-level export. |
Fair, @JohnC-80. My thinking was "you give it a path, it gives you module info" but I agree the name is awkward. You get more than just the module-name as a return value, hence avoiding "name" in the name. So ... |
Query discovery to retrieve information about the module implementing a given endpoint. Simple usage:
Refs STCOR-932