Skip to content

Commit

Permalink
Update installation.md (#3779)
Browse files Browse the repository at this point in the history
* Update installation.md

Added note about only calling Alpine start once.

* Update installation.md

---------

Co-authored-by: Caleb Porzio <calebporzio@gmail.com>
  • Loading branch information
BigWillie and calebporzio committed Oct 2, 2023
1 parent beb1d87 commit e0cc694
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/docs/src/en/essentials/installation.md
Expand Up @@ -61,8 +61,9 @@ Alpine.start()

> The `window.Alpine = Alpine` bit is optional, but is nice to have for freedom and flexibility. Like when tinkering with Alpine from the devtools for example.

> If you imported Alpine into a bundle, you have to make sure you are registering any extension code IN BETWEEN when you import the `Alpine` global object, and when you initialize Alpine by calling `Alpine.start()`.
> Ensure that `Alpine.start()` is only called once per page. Calling it more than once will result in multiple "instances" of Alpine running at the same time.

[→ Read more about extending Alpine](/advanced/extending)

0 comments on commit e0cc694

Please sign in to comment.