You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m not sure if this is a bug or expected behavior, and whether the error is in the software, or between chair and keyboard with the user (me 😄) but I had a WTF moment today when working with the Swift SDK.
In the web UI in recent signals, I was expecting to see a signal with name "someSignalName" having a parameter of "type" with value "someType".
Instead, I saw a signal with name "someType" 🤯
I guess if I set a custom parameter with key "type", it just overwrites the signal name. This was unexpected to me.
I’m not sure what would be the expected behavior here. Since I was developing in Xcode in debug mode as we all should before deploying things live, I would have been fine with the SDK either crashing with fatalError, or warning something in the console, if I try to use a “reserved” name as a custom payload key.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I’m not sure if this is a bug or expected behavior, and whether the error is in the software, or between chair and keyboard with the user (me 😄) but I had a WTF moment today when working with the Swift SDK.
I had a call like this:
In the web UI in recent signals, I was expecting to see a signal with name "someSignalName" having a parameter of "type" with value "someType".
Instead, I saw a signal with name "someType" 🤯
I guess if I set a custom parameter with key "type", it just overwrites the signal name. This was unexpected to me.
I’m not sure what would be the expected behavior here. Since I was developing in Xcode in debug mode as we all should before deploying things live, I would have been fine with the SDK either crashing with fatalError, or warning something in the console, if I try to use a “reserved” name as a custom payload key.
Beta Was this translation helpful? Give feedback.
All reactions