Files
rojo/plugin/src/init.server.lua
Lucien Greathouse 07c7b28c03 Fix plugin unloading
2019-03-21 22:35:30 -07:00

17 lines
312 B
Lua

if not plugin then
return
end
local Roact = require(script.Parent.Roact)
local App = require(script.Components.App)
local app = Roact.createElement(App, {
plugin = plugin,
})
local tree = Roact.mount(app, game:GetService("CoreGui"), "Rojo UI")
plugin.Unloading:Connect(function()
Roact.unmount(tree)
end)