# Perspective Component Hot-Reload

**URL:** <https://forum.inductiveautomation.com/t/perspective-component-hot-reload/80098>\
**Category:** Module Development\
**Tags:** ignition81, perspective\
**Created:** [October 5, 2023, 5:43pm UTC](https://forum.inductiveautomation.com/t/perspective-component-hot-reload/80098 "2023-10-05T17:43:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cody.tamaki](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cody.tamaki](https://forum.inductiveautomation.com/u/cody.tamaki)\
**Post date:** [October 5, 2023, 5:43pm UTC](https://forum.inductiveautomation.com/t/perspective-component-hot-reload/80098/1 "2023-10-05T17:43:29Z")

</div>

Is there any way I can hot-reload perspective components so that I don't have to fully re-compile my module every change while testing/debugging? At the moment I'm building something as a standalone react component and then clumsily copy/pasting it into my project and setting up all of the perspective props/bindings.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 5, 2023, 6:19pm UTC](https://forum.inductiveautomation.com/t/perspective-component-hot-reload/80098/2 "2023-10-05T18:19:23Z")

</div>

I don't think we have this documented anywhere (at least, that I can find), but you can use a JVM argument of the form `-Dres.path.yourModuleId=path/To/Some/Folder;path/To/Another/Folder` to tell the gateway to always look for resources for `yourModuleId` at the listed folder path(s). You'll probably also want to set `Dres.preferFlatDistResolve=true` so that we take the supplied paths directly, instead of looking inside them for `mounted/js` and `mounted/css` folders.

Both of those would go into your `ignition.conf` or otherwise be supplied to your development gateway as parameters.  
You _may_ also need to specify `-Dperspective.gateway.disableClientCaching=true`.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 5, 2023, 6:23pm UTC](https://forum.inductiveautomation.com/t/perspective-component-hot-reload/80098/3 "2023-10-05T18:23:53Z")

</div>

I vaguely recall some old SDK instructions for setting up a debug JVM that mentioned something like this. (I never do this for regular modules. My compile/install cycle is pretty quick.)
