Plugin: Pipe InstanceMap around, improve debug output, fix session ID bug

This commit is contained in:
Lucien Greathouse
2019-11-18 16:30:57 -08:00
parent 463bf9b116
commit bdaa671823
5 changed files with 52 additions and 13 deletions

View File

@@ -7,7 +7,6 @@ local RbxDom = require(script.Parent.Parent.RbxDom)
local t = require(script.Parent.Parent.t)
local Log = require(script.Parent.Parent.Log)
local InstanceMap = require(script.Parent.InstanceMap)
local Types = require(script.Parent.Types)
local invariant = require(script.Parent.invariant)
local getCanonicalProperty = require(script.Parent.getCanonicalProperty)
@@ -55,10 +54,10 @@ end
local Reconciler = {}
Reconciler.__index = Reconciler
function Reconciler.new()
function Reconciler.new(instanceMap)
local self = {
-- Tracks all of the instances known by the reconciler by ID.
__instanceMap = InstanceMap.new(),
__instanceMap = instanceMap,
}
return setmetatable(self, Reconciler)