Inspectopedia 2026.1 Help

Misconfigured @defer triggers

Reports misconfigured @defer block triggers that may lead to unexpected behavior.

The inspection detects the following issues:

  • The immediate trigger makes additional triggers redundant

  • Prefetch triggers have no effect when immediate is used

  • Prefetch timer delay that is greater than or equal to the main timer delay

  • Prefetch triggers that match the main trigger and provide no benefit

Example:

@defer (on immediate; on hover) { <!-- 'hover' trigger is redundant --> } @defer (on timer(1000); prefetch on timer(2000)) { <!-- Prefetch won't run before main trigger --> } @defer (on interaction(btn); prefetch on interaction(btn)) { <!-- Prefetch provides no benefit --> }

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

AngularMisconfiguredDeferTrigger
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Angular

Inspection ID: AngularMisconfiguredDeferTrigger

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection AngularMisconfiguredDeferTrigger

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Last modified: 31 March 2026