Skip to content

Alpine.js Cart Init when Cart.js is Ready #1177

Answered by SimoTod
james0r asked this question in 1. Help
Discussion options

You must be logged in to vote

It depends on what you want to do.
If you just need to call cartJS.init(), you can do it in your x-init but yeah, the reactivity in Alpune only works with plain object so changing your cartJS instance won't update the page.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by james0r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants