跳转到内容
angular challenges logo Angular Challenges

🟢 Function call in effect

挑战 #51

此内容尚不支持你的语言。

创建者 Thomas Laforge

Information

In this second challenge focusing on Signal effects, we’ve introduced an input select that allows users to choose an action. Whenever an action is selected, it is logged in the console. The application also permits changes to the selected user.

Problem Statement

Ideally, the system should log an action only when one is specifically selected. However, we currently face an issue where changing the user also triggers a log entry, even though we do not explicitly monitor user changes.

The objective of this challenge is to identify and resolve the cause of these extra triggers. We aim to ensure that logging only occurs when an action is selected.

Constraints

  • You cannot modify the UserService file.

贡献者

感谢所有帮助本文档变得更好的贡献者!

  • tomalaforge