Hi,
It has been pointed out to me that on
https://sling.apache.org/documentation/tutorials-how-tos/how-to-manage-events-in-sling.html#starting-a-job,
the sample code shows an EventHandler which has @Component(immediate=true).

As far as I know, this is an anti-pattern. The use of immediate=true is
unnecessary for EventHandlers (in general) since DS will automatically
activate them when/if an event matches the filter.

Is this understanding correct? Is there a reason our documentation has
immediate=true here?

Regards,
Justin

Reply via email to