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
Have we considered to shape the API as PendingBeacon("Get", ...) and PendingBeacon("Post", ...)? This would match what the fetch and XHR do. It seems uncommon with the current setup.
The text was updated successfully, but these errors were encountered:
If we made them the same class then we would have to specify that certain methods (like setUrl or setData) will raise exceptions when called on the wrong kind. Making them different classes avoids that and for typescript coders, it becomes a compile-time error to call setUrl of a POST beacon.
Have we considered to shape the API as
PendingBeacon("Get", ...)
andPendingBeacon("Post", ...)
? This would match what thefetch
andXHR
do. It seems uncommon with the current setup.The text was updated successfully, but these errors were encountered: