We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
提示应用代码妥善处理空值情况。
/cc @Saviio
The text was updated successfully, but these errors were encountered:
type Maybe<T> = T | null
Sorry, something went wrong.
这样也是有问题的,用的时候感叹号太多,噪音太大。失去了 optional 本身的意义。 建议你们还是和后端把 schema 定义清楚
@Brooooooklyn 谢谢建议!
这里主要是为了应对 change 推送带来的非完整数据。如果客户端没有接收过某条数据的 new 推送,该条数据也没有在这个客户端的任何页面被载入过,但 change 推送过来,结果这条数据突然符合某个页面数据流对应的查询。这种情况下,某些字段不值得做 padding 去补全,那它们可能就应该是 optional 的。
chuan6
No branches or pull requests
提示应用代码妥善处理空值情况。
/cc @Saviio
The text was updated successfully, but these errors were encountered: