Skip to content
On this page

effector/no-ambiguity-target

Call of guard/sample with target and variable assignment is ambiguity. One of them should be omitted from source code.

ts
// 👎 should be rewritten
const result = guard({ clock: trigger, filter: Boolean, target });

// 👍 makes sense
guard({ clock: trigger, filter: Boolean, target });
const result = target;

Released under the MIT License.