Skip to content

Conversation

@joehan
Copy link
Contributor

@joehan joehan commented Mar 29, 2021

Description

Stop setting these fields in UserRecord to null when they are not present - they should be undefined in that case. Fixes #875, though I am a little worried that this breaks users who were specifically checking if (userRecord.field == null).

@google-cla google-cla bot added the cla: yes label Mar 29, 2021
@joehan joehan requested a review from inlined March 29, 2021 19:05
@i14h
Copy link
Member

i14h commented Mar 29, 2021

@karayu what do you think about this issue? the change will be possibly breaking for some users

@inlined
Copy link
Member

inlined commented Apr 6, 2021

  1. IIRC the behavior was explicitly to provide exists-but-falsey behavior, so we should just replace the null with undefined so that iteration still includes those keys (we can revisit if we think this behavior is wrong)
  2. Per offline triage, we cannot fix this until we make a major version bump. Will consider in vNext.
@inlined inlined closed this Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants