New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[KBFS-3561] Fix downloads on Android #14585
Conversation
LGTM, but cannot test at the moment. |
Would |
Yes it works, I just like leaving explicit evidence that this is an immutable object in the code. |
But it's not type-checked anymore right? For example, you could do |
It appears to me that the type checking here is completely broken anyway, since Flow didn't catch this error in the first place. |
Does type checking work for Immutable records e.g. with |
i agree, avoid get unless its a dynamic sub thing |
That can't be an argument for giving up type checking there right? I think the reason why flow didn't catch it was probably because of the less typed generator function. But perhaps something like this would work:
Also I'm guessing the type checking must be working in |
they flow type the same. .get isn't required for records and we shouldn't use it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; Thanks for making the changes!
This might warrant a hotfix.