mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Make reconciler more robust with regards to RouteMap
This commit is contained in:
parent
e9d33bdc02
commit
fd2cb3495b
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue