mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
- Rename operator to be more descriptive of actual behavior - Add deprecated alias for backwards compatibility - Remove inner guards from effects - inject() only works during class initialization, not inside switchMap callbacks at runtime - Keep outer guards only (at createEffect level) - Update ESLint rule to accept both names - Add comprehensive unit tests for the operator (6 tests) Key insight: The skipWhileApplyingRemoteOps() operator uses inject() internally, which only works within Angular's injection context (during class field initialization when createEffect() is called). Using it inside switchMap callbacks causes NG0203 errors at runtime. Also: currentTaskId$ is local UI state that doesn't sync between devices. The operation log syncs entities (tasks, projects, tags), not UI state. Therefore distinctUntilChanged() is sufficient for filtering spurious emissions on inner observables. |
||
|---|---|---|
| .. | ||
| require-entity-registry.js | ||
| require-hydration-guard.js | ||
| require-hydration-guard.spec.js | ||