-
Notifications
You must be signed in to change notification settings - Fork 115
refactor!: refactored useUrlResolver to use the route query #1078
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
refactor!: refactored useUrlResolver to use the route query #1078
Conversation
262f6ac to
4db7d51
Compare
| const search = async (): Promise<ROUTE_TYPE> => { | ||
| loading.value = true; | ||
| let results: EntityUrl = {}; | ||
| let results = null; |
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.
| let results = null; | |
| let results : EntityUrl | null = null; |
Don't remove the type assertion. Right now the type of results is "any"
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.
If EntityUrl doesn't work now please use something else that fits
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.
fixed, but I had a problem with wrong generic type and I needed to add @ts-ignore in one line below.
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.
Wouldn't count ts-ignore as a fix unless there's some third party TS mistake :P Hopefully Bart's comment about removing the generic should help
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.
After chatting with Bartek, the generic type need to stay here. I tried to fix ts-ignore but without success. Could you check out my branch and check that by yourself?
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.
@Frodigo I just committed a working proposition. Check it out and subscribe my channel ;)
sethidden
left a comment
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.
Left some comments
4db7d51 to
622cb60
Compare
bartoszherba
left a comment
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 think that the Router type must be removed.
sethidden
left a comment
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.
Can we please fix the ts-ignore? The error should be fixable, for example with Bartek's suggestions. If not, we can hop on a call
622cb60 to
b15487d
Compare
3a44eb0 to
efd579e
Compare
efd579e to
70fcccd
Compare
Description
THe urlResolver Magento query is deprecated on Magento API side. This PR:
Related Issue
Motivation and Context
Refactorization
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: