From 0c845bed5a07a657a082f924b4de4de1d16c0793 Mon Sep 17 00:00:00 2001 From: Saeid Zareie Date: Thu, 16 Jan 2025 08:17:28 +0330 Subject: [PATCH] docs: adding more information --- docs/3.api/3.utils/call-once.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/3.api/3.utils/call-once.md b/docs/3.api/3.utils/call-once.md index 27bb973b0f..269d085026 100644 --- a/docs/3.api/3.utils/call-once.md +++ b/docs/3.api/3.utils/call-once.md @@ -28,7 +28,7 @@ This is useful for code that should be executed only once, such as logging an ev ## Usage -Running code only once. For example, if the code runs on the server it won't run again on the client. +Running code only once. For example, if the code runs on the server it won't run again on the client. this demonstrates the default `render` mode behaviour. ```vue [app.vue] ``` -Sometimes you do want code to run on every navigation - just avoid the initial server/client double load. For this, there's a new mode: 'navigation' option that will run the code only once per navigation. +Sometimes you do want code to run on every navigation - just avoid the initial server/client double load. For this, there's a new mode: `navigation` option that will run the code only once per navigation. ```vue [app.vue]