@@ -60,7 +60,7 @@ export default function () => ({
<a name="init-functions"></a>
## Init functions
-If your component contains an `init()` method, Livewire will automatically execute it before it renders the component. For example:
+If your component contains an `init()` method, Alpine will automatically execute it before it renders the component. For example:
```js
Alpine.data('dropdown', () => ({
@@ -290,7 +290,9 @@ However, using V3's new custom directive API, it's trivial to reintroduce this f
let getHtml = evaluateLater(expression)
effect(() => {
- el.innerHTML = getHTML()
+ getHTML(html => {
+ el.innerHTML = html
+ })
})