diff --git a/docs/docs/scenario.md b/docs/docs/scenario.md index 298d466..b53e65d 100644 --- a/docs/docs/scenario.md +++ b/docs/docs/scenario.md @@ -40,6 +40,10 @@ function scenario( - **cyclic** - runs scenario only if previous one is completed - **once** - run scenario only one time +:::info Default strategy +By default instant scenarios use `cyclic` strategy, whereas scenarios with trigger use `fork` strategy. Exceptionally, if a trigger is a plain promise, default strategy is `once`, but this is a very unlikely case. +::: + ## Events - **started** - emitted on every scenario callback run @@ -47,10 +51,6 @@ function scenario( - **rejected** - emitted when callback throws - **settled** - emitted when no more callbacks will be run -:::info Default strategy -By default instant scenarios use `cyclic` strategy, whereas scenarios with trigger use `fork` strategy. Exceptionally, if a trigger is a plain promise, default strategy is `once`, but this is a very unlikely case. -::: - ## Examples ```ts title="Scenario of writing every counter change into sessionStorage" description="abc"