mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
Add local-rules/require-hydration-guard ESLint rule that warns when selector-based NgRx effects lack hydration guards (skipDuringSync() or isApplyingRemoteOps()). The rule correctly identifies: - Effects that START with this.store.select() as primary source - Does NOT flag selectors in withLatestFrom (secondary sources) - Does NOT flag selectors inside operator callbacks (already guarded) This prevents duplicate operations during sync replay where selector-based effects would fire on intermediate states. Install eslint-plugin-local-rules to enable the rule. |
||
|---|---|---|
| .. | ||
| rules | ||
| index.js | ||