-
Notifications
You must be signed in to change notification settings - Fork 10
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
Support for jsonConfig and React Tab at the same time #473
Comments
I think the best way would be to parse the io.package and get the infos about "used types" from there and then do the needed things based on this and not on existing files. The io-package is already read in some places if needed. Do you want to give it a try to adjust it yourself? |
Hi @Apollon77 , I can't promise that I will try it because of spare free time (what else ;)?), but I also do not reject this offer yet :) One thing that frightens me is that there seems to be no obvious test tooling for the dev-server. I guess if there would be automated tests I would be more confident and might give it a try more quickly. Is there anything that I miss in regards of testing? Because it is a hughe codebase and I can't imagine that everything is tested manually... (?) |
I would not know any automated tests for this - also because it is very hard to mock all the relevant things to have meaningful automated tests there. So tests are mainly done by really executing it on an own system. The good in this case is that the changes are relatively limited in scope, so the risk to affect other functionality is not too high |
I've searched over an hour now why my
Lines 658 to 664 in 896cdaf
Workaround: Renamed the |
What do you think ... how to best solve that ... simply always do both depending pon file existence? |
Hi there,
currently the dev-server does not fully support to have a jsonConfig.json[5] and a React tab in parallel. At least the hot reload feature is a either/or decision. You can see that here:
dev-server/src/index.ts
Line 638 in 259a1cc
Might be connected to #464
Maybe there are more parts like this. But before I dive into that any more: Is this intendend behaviour? Like is there a fixed guideline for adapter development out there that says: Either use HTML/React for config, tab and custom or use jsonConfig for config (no tab/custom) and do not combine approaches?
I personally really like to use a React tab and jsonConfig for the simpler config part. But if this is not the way to go then I might switch because the missing hot reload feature is a killer for itself. Other downsides I haven't recognized so far but they may exist.
Thanks for feedback in advance!
The text was updated successfully, but these errors were encountered: