Conversation
|
Travis automatic deployment: |
| ] | ||
|
|
||
| export const getAppInfoFromOrigin = (origin) => { | ||
| export const getAppInfoFromOrigin = (origin: string): Record<string, any> | null => { |
There was a problem hiding this comment.
please change any to unknown
There was a problem hiding this comment.
I did, but it was complaining about the "unknown" type, I'll try again.
There was a problem hiding this comment.
shame on me that assumed those were all old. I'll have a look
|
@nicosampler what's up with this ticket? |
|
@nicosampler are you going to finish this or somebody needs to take this? |
|
I've been working on it, and I got stuck working with the debounce function, for some reason (that could not discover yet), the function is being re-created due to a re-render all the time and that force the requests to be triggered all the time. Feel free to take a look, I'm working with TXs now. |
In that case you should ask for help, we can't help if we don't know you need it |
|
I did, worked on it with Fernando, then I had to move to another ticket. |
Working silently with someone on a fix != sharing a problem with a team so anyone can take a look at it |
|
Travis automatic deployment: |
I'm planning to remove this dependency, as it requires to also install `lodash.debounce`. I prefer to implement it ad-hoc.
ESLint Summary View Full Report
[warning] @typescript-eslint/no-non-null-assertion
Report generated by eslint-plus-action |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
I still get a chunk of error by writing an ULR. Is not as aggressive like it is in prod where there like 5 error per character you type, but there they are. I don't know how much we can avoid it, so this is just how I see it in this PR right now I've tried to type this URL https://ipfs.io/ipfs/QmTgnb1J9FDR9gimptzvaEiNa25s92iQy37GyqYfwZw8Aj/ |
Well, we can prevent logging the errors. But sometimes they're useful. The thing with the number of errors has to do with how fast you type if you take more than 500ms between keystrokes, then you'll have an error per char. Said so, we can increase the |
also, moved `initialValues` to a constant `INITIAL_VALUES` outside the component
also fixed types
|
It's totally fine log these errors, a partial URL is not a valid safeApp. Regarding the 500ms, I think it's the standard. |
|
Yeah I agree that logging these errors is perfectly fine. |
|
Travis automatic deployment: |
1 similar comment
|
Travis automatic deployment: |
|
Gotcha. Then It's fine for me |
| const currentApp = list[index] | ||
|
|
||
| const appInfo: any = await getAppInfoFromUrl(currentApp.url) | ||
| const appInfo: SafeApp = await getAppInfoFromUrl(currentApp.url) |
There was a problem hiding this comment.
I think the type here will be inferred
also, removed the expected type for the `getAppInfoFromOrigin` calls as it is inferred
|
Travis automatic deployment: |
|
Travis automatic deployment: |
closes #999.