Caleb Porzio 4 năm trước cách đây
mục cha
commit
84d8b1ad00

+ 1 - 1
packages/docs/src/en/globals/alpine-data.md

@@ -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', () => ({

+ 3 - 1
packages/docs/src/en/upgrade-guide.md

@@ -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
+                })
             })
         })
     })