livewire / volt

Volt is an elegantly crafted functional API for Livewire.
https://livewire.laravel.com/docs/volt
MIT License
327 stars 19 forks source link

Folio and multiple @volt ? #25

Closed robsontenorio closed 1 year ago

robsontenorio commented 1 year ago

Volt Version

v1.0.0-beta.4

Folio Version

v1.0.0-beta.4

Laravel Version

10.16.1

PHP Version

8.2.8

Database Driver & Version

None

Description

Is Folio supposed to work with multiples instances of @volt in same file?

Steps To Reproduce

<?php

use Livewire\Volt\Component;

new class extends Component
{
    public $count = 0;
}; ?>

<div>
    <h1>Hi!</h1>

    @volt('example-1')
        <div>1</div>
    @endvolt

    <h1>Hello!</h1>

    @volt('example-2')
        <div>2</div>
    @endvolt

</div>
image