-
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 useModuleInfo(path) to map path -> module #1578
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 af2bd81. ± Comparison against base commit 792d3b2. This pull request removes 5 and adds 3 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
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 ... |
@zburke I like |
Quality Gate passedIssues Measures |
@JohnC-80: I added exports and renamed the hook. Take another look? |
Query discovery to retrieve information about the module implementing a given endpoint. Simple usage:
Refs STCOR-932