Hot Reload Development
Hot reload enables rapid development by automatically updating your components as you make changes.
Setup
- Start the webpack watcher:
cd web
npm run watch
-
Open the Designer External Debugger:
- Tools > Launch Perspective... > External Debugger
- Keep this window open during development
-
After making changes to web components:
- Save your files
- Press Cmd+R (Mac) or Ctrl+R (Windows) in Designer to see updates
Important Limitations
Component Property Changes
Changes to component properties defined in the common
scope won't be picked up by hot reload. This includes:
- Modifications to
*.props.json
files - Updates to Java component descriptors
- Changes to event definitions
For these changes, you must:
- Rebuild and redeploy the module:
./gradlew build deployModl
- Restart the Designer completely
Best Practices
- Group related changes to property schemas to minimize rebuilds
- Keep the External Debugger window open during development
- Focus on component logic and styling during hot reload development
- Save property and event changes for dedicated testing sessions