From fd2cb3495ba02a63406de3e6e9d9cc365099407b Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Mon, 21 May 2018 11:21:31 -0700 Subject: [PATCH] Make reconciler more robust with regards to RouteMap --- plugin/src/Reconciler.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/src/Reconciler.lua b/plugin/src/Reconciler.lua index 49b7bfba..a0ea06a8 100644 --- a/plugin/src/Reconciler.lua +++ b/plugin/src/Reconciler.lua @@ -143,6 +143,7 @@ function Reconciler:reconcile(rbx, item) -- Item was deleted if not item then if rbx then + self._routeMap:removeByRbx(rbx) rbx:Destroy() end @@ -156,9 +157,10 @@ function Reconciler:reconcile(rbx, item) -- Item changed type! if not classEqual(rbx, item.ClassName) then + self._routeMap:removeByRbx(rbx) rbx:Destroy() - rbx = self:_reify(item) + return self:_reify(item) end -- Apply all properties, Roblox will de-duplicate changes