Adding props to a component are not directly reflected
Hi,
when having a component without props definition (initial) and then adding some, the Webcodesk UI don't shows automatically the added props in the preview screen or when using the component. A Reload of the Webcodesk application, in the browser, is needed to see the changes.
- Create a component without props definition (in my case a *.tsx but maybe a general issue)
- Open the preview in Webcodesk
- Add some props-definitions to the component and defaults
- Go to Webcodesk
- The source code shows the new version with the props-definition
- The preview works with the new props (Defaults)
- The Props are not displayed in the right properties panel
- Reload the Website
- Properties are displayed
- Add an additional property to the definition
- Go to Webcodesk
- Component works with the new added Props
- The properties view is not updated
@SoftHai,
I encounter the same issue only in Windows 7. Actually, I'm not sure about the reason of the issue though.
Here are the systems that I've tested:
- Mac OS (any version) - success
- Ubuntu Linux - success
- Windows 10 - success
- Windows 7 - failed
I'd much appreciate it if you help me to understand the reason in your OS. Could you tell me what OS and NodeJS version you are using?
Hi,
sure, I using Windows 10 Enterprise (1909) with Node.js (13.6.0). Also I'm using Chrome (80.0) Hope that helps.
@SoftHai,
Would you mind to provide testing of this case?
- Clone the source code and install deps by
yarn installcommand. - Find the
src/srv/watcher.jsfile in the source code root dir. - Uncomment all lines with
console.infofunction in the found file. - Build the distribution by command:
yarn build. - Set the
-dargument in theserverscript in thepackage.json(83-d line) to the directory path where your project is. - Run Webcodesk:
yarn server. - Watch in the terminal output lines when you change source code files in your project.
The idea is to track if the watcher library can see changes in files. If there is no activity I'll try to investigate the reason.
The watcher is on the server side, so you should see console log in the terminal window (command line) where you were typing yarn wcd
Hi,
there is no logs in the console window:

@SoftHai, thanks.
That means that chokidar library does not work on your OS :-(
Mhhh strange. Don't have a very exotic setup ;-) But okay, when it is more an issue with my system then there is not much you can do / fix. I'm now aware of this behavior and have to click the refresh button once more as usual, to get my changes reflected.
thanks for your support. Feel free to close this issue if you want.