-
Notifications
You must be signed in to change notification settings - Fork 65
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
Watcher doesn't reload demo when nested components are changed #30
Comments
Just to clarify what's going on. This is a known issue with our build process. The builder smart enough to find a component's dependencies and build those (recursively), but it's not smart enough to find all of the dependents of a component and rebuild those. We may need to go back to first principles and build the builder the right way in order to solve this. As it stands, the tooling is very primitive and kind of a mess. |
@matthewtoast thanks for the update. I would be happy to help if I can. Are you thinking that you will rebuild the CLI tool or are you thinking of something else? |
Most of the issues with this are located in the framework's dev tools (here be dragons): https://github.com/Famous/framework/tree/develop/dev I'm planning to go through and refactor a lot of this to hopefully make it easier to handle these cases. |
OK so the issue is related to the fact that this line resolves to false. found in |
@thiswildorchid - That option will indeed work. But, it gets a bit hairy when you are developing a lot of components in that one workspace. I.e., rebuilding say 100 components when you've made a tiny whitespace change seems a bit heavy. (Especially if you're like me and you compulsively 'save' almost every minor change!) I feel like there's a way to handle this that is a bit more limited. So I would rather not make |
Right now I feel the build process is no better off without
I think that is a legitimate concern and good point. However I don't think anyone is going to be be working on anything more than demo apps in the short term and those will likely not have more than a few modules. If we consider the inverse, where the option is set to That being said I would be happy to contribute the documentation as you see fit. |
Cool, that's great feedback. I'll go through it a few times with |
Even with this setting I'm finding that I need to still save twice before the changes appear in the browser. Also, multiple live reloads get triggered - once for each component, at a guess. |
We'll be adding a new option soon that will hopefully remove some more friction from this process. |
I'm porting this issue via @thiswildorchid that was filed against the famous-cli repo - Famous/famous-cli#54 - since it is actually a problem with our tooling not the CLI itself.
It appears that when I create new components the app is not watching them for changes and wont load the changes made to the files in the modules.
How to reproduce
.famous
directory andmyNameSpace.js
filemyNameSpace
component in main app i.e.The text was updated successfully, but these errors were encountered: