From b51e2529b2c198f2deb3ac46c64f546f641c1c2e Mon Sep 17 00:00:00 2001 From: Wouter Brouwers Date: Wed, 29 Sep 2021 22:51:47 +0200 Subject: [PATCH] Update writing-your-first-reactor.md Update links to V5 --- docs/using-reactors/writing-your-first-reactor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/using-reactors/writing-your-first-reactor.md b/docs/using-reactors/writing-your-first-reactor.md index 537994f8..4f1f23bf 100644 --- a/docs/using-reactors/writing-your-first-reactor.md +++ b/docs/using-reactors/writing-your-first-reactor.md @@ -5,7 +5,7 @@ weight: 1 ## What is a reactor -Now that you've [written your first projector](/laravel-event-sourcing/v4/using-projectors/writing-your-first-projector), let's learn how to handle side effects. With side effects we mean things like sending a mail, sending a notification, ... You only want to perform these actions when the original event happens. You don't want to do this work when replaying events. +Now that you've [written your first projector](/laravel-event-sourcing/v5/using-projectors/writing-your-first-projector), let's learn how to handle side effects. With side effects we mean things like sending a mail, sending a notification, ... You only want to perform these actions when the original event happens. You don't want to do this work when replaying events. A reactor is a class, that much like a projector, listens for incoming events. Unlike projectors however, reactors will not get called when events are replayed. Reactors only will get called when the original event fires.