synthesis icon indicating copy to clipboard operation
synthesis copied to clipboard

Hot Refresh Support

Open ryanzhangofficial opened this issue 6 months ago • 2 comments

Refactors ThemeContext, ModalContext, and PanelContext to follow React Fast Refresh guidelines by exporting only components/hooks. Moves helpers to separate .ts files to avoid full reloads on UI changes. More info in docs.

ryanzhangofficial avatar Jun 19 '25 23:06 ryanzhangofficial

Noted! Updated the file nomenclature. I tried to merge the conflicts but the new Jolt module seems to be giving me problems.

ryanzhangofficial avatar Jun 20 '25 19:06 ryanzhangofficial

Thanks for the useTheme catch. ThemeProvider, however, should stay because it's the React component. I realized that the useModelControlContext and usePanelControlContext hooks were both still in ModelContext and PanelContext and did some further component isolation.

ryanzhangofficial avatar Jun 20 '25 22:06 ryanzhangofficial