microsoft / microsoft/FeatureManagement-JavaScript
Missing await causes true evaluation
未关闭
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 19
- 派生
- 6
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 4
描述
if (temp.isEnabled("foo")) {
button.className = "cool";
button.textContent = "Cool Button";
} else {
button.className = "lame";
button.textContent = "Lame Button";
}
We will always run the "cool" path here, because I didn't put an await on the isEnabled call. I think this is bad.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 isEnabled 的实现以及任何相关的使用位置或测试,然后复现 issue 中所示的条件。除了指出 missing-await 问题之外,issue 没有提供目标行为,因此需要在实现之前明确预期的解决方案和完成标准。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, typescript
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100