Skip to main content

ImmediateHotReloadInstall

Studio-only installer that keeps an ImmediateScheduler's systems folder in sync with Rojo. Clone-based require busts ModuleScript identity cache; ImmediateScheduler.RegisterSystem replaces by name and Destroy()s the previous system.

Shadow publication (Rojo's ServerScriptService copy of a ReplicatedStorage tree) is based on the same idea as sayhisam1/Rewire's HotReloader (https://github.com/sayhisam1/Rewire/blob/main/src/HotReloader.lua, MIT).

ImmediateInstall.stackN(..., ImmediateHotReloadInstall.install(systemsFolder))
ImmediateHotReloadInstall.mirrorShadow(liveSystemsFolder)
Show raw api
{
    "functions": [],
    "properties": [],
    "types": [],
    "name": "ImmediateHotReloadInstall",
    "desc": "Studio-only installer that keeps an ImmediateScheduler's systems folder in\nsync with Rojo. Clone-based require busts ModuleScript identity cache;\n[ImmediateScheduler.RegisterSystem] replaces by name and Destroy()s the\nprevious system.\n\nShadow publication (Rojo's ServerScriptService copy of a ReplicatedStorage\ntree) is based on the same idea as sayhisam1/Rewire's HotReloader\n(https://github.com/sayhisam1/Rewire/blob/main/src/HotReloader.lua, MIT).\n\n```\nImmediateInstall.stackN(..., ImmediateHotReloadInstall.install(systemsFolder))\nImmediateHotReloadInstall.mirrorShadow(liveSystemsFolder)\n```",
    "source": {
        "line": 19,
        "path": "src/immediateutils/src/Shared/hotreload/ImmediateHotReloadInstall.lua"
    }
}