-
-
Notifications
You must be signed in to change notification settings - Fork 298
continue componentization of existing client: packages/templates/clients/js/websocket/template/client.js.js #1349
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
Comments
iam working on this @derberg |
@derberg I reviewed the PR raised in this issue. According to me their are few logical errors as well because if we see the test cases which are failing is showing something like [object] [object] ... as shown below - After research I found out the issue happens because React components return objects, but using them inside a text-based output. |
@Adi-204 please share what you noticed directly in the PR. You can start working on PR once we close the other one. Let's see if the contributor makes any comments until Wednesday |
@derberg sir actually I notice that all the components are returning |
Large part of https://github.com/asyncapi/generator/blob/master/packages/templates/clients/js/websocket/template/client.js.js is still "hardcoded" inside main fail. We should aim for granular componentization - but of course not because we need it, but of course we should do it only if it makes sense.
you can already see
FileHeaderInfo
andRequires
there in action. Check the rest and propose new components.remember they are like functions. So you do not want to have all the code in one function, with possible repetitions, and instead you devide your code into sections and push to components.
reading
client.js.js
should be super easy, you shoudl be able to understand what details it contains without really knowing exactly the entire code.I hope that it makes sense
The text was updated successfully, but these errors were encountered: