Pass updated value to GetPropertyChangedSignal

It would be more convenient and a small bit more efficient to pass the new value to the callback functions given to GetPropertyChangedSignal

--Current
self.UI.Value.Input:GetPropertyChangedSignal("Text"):Connect(function()
    print(self.UI.Value.Input.Text)
end)

--or
local Input = self.UI.Value.Input
self.UI.Value.Input:GetPropertyChangedSignal("Text"):Connect(function()
    print(self.UI.Value.Input.Text)
end)

--Proposed, pass the new value to the callback to avoid creating a new variable and multiple long instance paths
self.UI.Value.Input:GetPropertyChangedSignal("Text"):Connect(function(NewText)
    print(NewText)
end)
6 Likes

It may be linked to .Changed only providing the name of the property that was changed. Would be nice to add it to that even too as a second parameter.

A feature request already exists for this: