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
In general, we prefer designing APIs such that boolean flags are opt in - so true changes the behavior. APIs that set boolean values to default to true are confusing in JS because it means that true and "missing" (or undefined) behave the same and only false is different.
We should generally strive to ensure that for boolean flags, omitting a flag and explicitly marking it as false behave the same way. Sometimes this means you just invert the name - for example, contexture-client has disableAutoUpdate as a flag which you can opt in to instead of autoUpdate which would have to default to true (and thereby make undefined and true behave the same)
Opened as an issue first in case anyone has any points to bring up
The text was updated successfully, but these errors were encountered:
We should a note like this:
Opened as an issue first in case anyone has any points to bring up
The text was updated successfully, but these errors were encountered: