You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple todo app built in Livewire 3 with pagination. My app uses dark mode so I have to publish the Livewire pagination views in order to add support for dark mode.
As per the normal those views live at:
resources/views/vendor/livewire/
When loading a custom pagination template in Livewire pagination you have to pass the view to the links() method:
When running this in a normal server via Valet or artisan serve this loads up the vendor template fine.
But when running in the NativePHP dev server these do not resolve and fall back to the Livewire default templates.
Curiously, it won't load the custom templates even if I move them out of the vendor directory, and even weirder, NativePHP will ONLY load the simple pagination template, even though simplePaginate is not being called, as you can see here:
When running under a normal PHP server pagination loads as expected, but under the NativePHP dev server only the default Livewire simple pagination templates are resolved.
What happened?
I have a simple todo app built in Livewire 3 with pagination. My app uses dark mode so I have to publish the Livewire pagination views in order to add support for dark mode.
As per the normal those views live at:
When loading a custom pagination template in Livewire pagination you have to pass the view to the
links()
method:When running this in a normal server via Valet or
artisan serve
this loads up the vendor template fine.But when running in the NativePHP dev server these do not resolve and fall back to the Livewire default templates.
Curiously, it won't load the custom templates even if I move them out of the vendor directory, and even weirder, NativePHP will ONLY load the simple pagination template, even though
simplePaginate
is not being called, as you can see here:Very strange indeed.
How to reproduce the bug
When running under a normal PHP server pagination loads as expected, but under the NativePHP dev server only the default Livewire simple pagination templates are resolved.
Package Version
0.4.0
PHP Version
8.2.8
Laravel Version
10.19.0
Node Version
18.17.0
Which operating systems does with happen with?
macOS
Notes
macOS 13.14.1 (c)
The text was updated successfully, but these errors were encountered: