jonassiewertsen / statamic-live-search

A Statamic Live Search realized with Laravel Livewire.
20 stars 12 forks source link

Live Search v2 not working with Antlers #27

Closed JayGeorge closed 7 months ago

JayGeorge commented 7 months ago

Hey Jonas,

I seem to be running into issues when upgrading from v1.7 to v2. The livewire component isn't working.

I recorded a 1 min video showing this failing here. I'm missing something, or maybe something broke in v2 / livewire 3.

Thanks for your work on the addon; it's very handy :)

Here are my details in case they help:

Environment
Application Name: Statamic
Laravel Version: 10.43.0
PHP Version: 8.2.15
Composer Version: 2.5.5
Environment: local
Debug Mode: ENABLED
URL: comtrade.test
Maintenance Mode: OFF

Cache
Config: CACHED
Events: NOT CACHED
Routes: CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: daily
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 6
Antlers: runtime
Stache Watcher: Enabled
Static Caching: Disabled
Version: 4.47.0 PRO

Statamic Addons
aryehraber/statamic-captcha: 1.10.0
jonassiewertsen/statamic-live-search: 1.7.0
jonassiewertsen/statamic-livewire: 2.12.0
statamic/collaboration: 0.8.1
statamic/seo-pro: 5.4.1
jonassiewertsen commented 7 months ago

Hej Jay

Does adding .live solve your issue, like shown below?

https://github.com/jonassiewertsen/statamic-live-search/commit/1220789ee59e41d9d4d476cba6d273ba3ff82370

If it does, I will add a little upgrade guide.

jonassiewertsen commented 7 months ago

https://github.com/jonassiewertsen/statamic-live-search/blob/main/README.md#upgrade-guide

JayGeorge commented 7 months ago

Hey Jonas,

Thanks for getting back so quickly.

I've re-installed Live Search to the latest version, and now it seems to be working (even though I re-installed it many times yesterday without any luck). I have no idea what changed 😬 but it's working now—even without the .live notation.

So strange! That's the programming life… But I am happy it's working

jonassiewertsen commented 7 months ago

That's part of life i guess :-)