github alpinejs/alpine v2.0.0

Removed

  • x-created and x-mounted in favor of x-init
    For x-created behavior, use x-init. For x-mounted behavior, return a callback from x-init

Before

<div x-data x-created="doSomething()">
...
<div x-data x-mounted="doSomething()">

After

<div x-data x-init="doSomething()">
...
<div x-data x-init="() => { doSomething() }">
latest releases: v2.8.0, v2.7.3, v2.7.2...
11 months ago