-
Notifications
You must be signed in to change notification settings - Fork 98
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
feat(core): add useGetNavigationUrl in shell client #14964
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, all the app information is available in Shell-context. So, no need to make it async but it can be made synchronous.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I take a look 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I seen by curiosity.
getURL return string in the basic inplementation : packages/components/ovh-shell/src/plugin/navigation/index.ts
But the problem it's we provide : invokePluginMethod
in packages/components/ovh-shell/src/client/shell-client.ts
I don't known if it's possible to remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tibs245 you mean you want to return a string, more easy to use ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure to understand how do you want to make it synchronous. @anooparveti how do you make it synchronous ? as @tibs245 said, getUrl use 'invokePluginMethod' we need to wait this promise
3c7e126
to
b224a51
Compare
packages/manager/core/shell-client/src/hooks/useNavigationGetUrl.ts
Outdated
Show resolved
Hide resolved
ref: MANAGER-15760 Signed-off-by: Alex Boungnaseng <[email protected]> Co-authored-by: Thibault Barske <[email protected]>
b224a51
to
a85c257
Compare
Quality Gate passedIssues Measures |
ref: MANAGER-15760
develop
Description
add useGetNavigationUrl in shell client to avoid duplication
Related