Skip to content

Commit 7ca86bc

Browse files
committed
minor #68 Adding note about lazy controllers appearing to connect/initialize twice (weaverryan)
This PR was merged into the main branch. Discussion ---------- Adding note about lazy controllers appearing to connect/initialize twice Fixes #67 Commits ------- 16f3dda Adding note about lazy controllers appearing to connect/initialize twice
2 parents 997655b + 16f3dda commit 7ca86bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ ordered from least to most lazy:
201201

202202
## Lazy Controllers
203203

204+
**NOTE**: When using lazy controllers, you may notice in your browser's console that
205+
your controller appears to be initialized and connected *twice*. But actually, the
206+
first initialize and connect are just a result of an internal controller setting
207+
up your real controller.
208+
204209
You can also make your own controllers "lazy": giving them the same behavior
205210
as the `lazy-controller` explained above. In this case, your controller isn't
206211
downloaded until an element for that controller first appears on the page.

0 commit comments

Comments
 (0)