I am having an issue where the datachanged block is firing unexpectedly. There have been similar posts to this but I am not even comparing strings to numbers or anything. I am questioning why this block is firing at all.
My Firebase “848JobID” value has remained at 328 for the past week so there are no changes to it. I have a listener set up for this key like this.
When I run the app in test the datachanged block is triggered even though I am sitting looking at the Firebase data and can see the value is not updated at all.
The datachanged block is here.
I have an alert set up to view datachanged block and it is showing as follows
The Alert title is the name of the key in question and the key=value is the green value tag from the change block.
My expectation here is any code in the DataChanged block is not run unless the key 848JobID changes. It doesnt change but the code here is still firing. Is my expectation wrong here?