From 9a5e9dc057f89b0570eb2541a75f3ecd38d31d95 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 30 Jan 2019 15:43:12 +0100 Subject: [PATCH] Update developer_manual/app/view/js.rst Co-Authored-By: rullzer --- developer_manual/app/view/js.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/developer_manual/app/view/js.rst b/developer_manual/app/view/js.rst index 5847028f5..34c33722f 100644 --- a/developer_manual/app/view/js.rst +++ b/developer_manual/app/view/js.rst @@ -117,7 +117,7 @@ if you know for sure your state will be used. For example on the settings page of your app. * ``provideLazyInitialState(string $appName, string $key, Closure $closure)``: Use this method if you want to inject your state on a general page. For example -the initial state of the notifications app. +the initial state of the notifications app. The callback will be invoked if and only if a template is rendered. You call both methods with the name of your app and a key. This is to scope the states properly. You will need both when retrieving the initial state in