Open atompie opened 2 years ago
Hello @atompie , Can you assign this issue to me?
Hello @atompie , Can you assign this issue to me?
@M-RAY47 Sure. Please make a PR after first change so we can CR it and see if you are going in the right direction. Otherwise if something is not right then you may loose a lot of time.
Hello @atompie , Can you assign this issue to me?
@M-RAY47 Sure. Please make a PR after first change so we can CR it and see if you are going in the right direction. Otherwise if something is not right then you may loose a lot of time.
Ok, I am on it.
Sorry to ask what PR
and CR
mean?
Can you give some hint because I couldn't locate javaScript files, most of them are python files
@M-RAY47 Take a look at http://GitHub.com/tracardi/tracardi-gui
We keep gui files in this repo. I may transfer this issue to this repo.
Please fork tracardi-gui
Ok I got it, thanks
@M-RAY47 If you are working on this task please update the code frequently as the is continuous change and some of the parts of this task may be already done.
@atompie hello, sir I think you can close this issue from this project, because it should in the other project "Tracardi-gui"
Is this still an issue?
@caseyjkey Yes we still have some places to refactor.
We need to replace
request
withasyncRemote
. Contrary toremote
,asyncRemote
can be used as awaitable.Task
Find all occurrences of
request
calls and replace them withasyncRemote
.Use where possible the async way of calling the method. Example
It is not possible to make call awaitable in useEffects. Then handle it with promise.
Test it thoroughly. Test every change separately.
Do not forget to set loading where it was used.
For example:
This code:
Should be replaced like this. No await because it is in useEffects.
mind the setLoading.
If it was not in useEffects always use it like this