Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't init trees within ignore elements (x-ignore) #4428

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

calebporzio
Copy link
Collaborator

No description provided.

@calebporzio calebporzio merged commit 463f277 into main Nov 3, 2024
1 check failed
@calebporzio calebporzio deleted the branch-5c264485 branch November 3, 2024 19:18
@lonnylot
Copy link

@calebporzio Can we get this tagged / pulled in to livewire? 🙇

@angus-mcritchie
Copy link

@calebporzio This seems to have caused breaking changes in Filament, I attempted to make a pull request and fix it there, but there is more code relying on this behaviour so it was declined.

As it's a breaking change from Alpine JS, maybe it should be fixed in Alpine as pointed out here?

PS. big fan of your work, Livewire & Flux Pro subscriber ❤️

@SimoTod
Copy link
Collaborator

SimoTod commented Dec 10, 2024

@angus-mcritchie the fix is in code review with async alpine v2 (not sure if filament is already using it though, i think they are still on v1).
This is not technically a breaking change but it was a bug for previous versions of alpine, a directive that has a parent element with x-ignore should not initialise.

@angus-mcritchie
Copy link

@SimoTod Filament is using Alpine JS 3 as a dependency from Livewire.

In Filament v3.2.125, Livewire had to be locked to v3.5.12 because of 3.14.5 breaking change/bug fix.

Although I can see that this is meant to be a bug fix, this change should be reverted as it has caused a terrible breaking change (making the whole app unusable).

@SimoTod
Copy link
Collaborator

SimoTod commented Dec 11, 2024

@angus-mcritchie I can see your point, let's see what the maintainer decides.

In theory filament should get rid of those x-ignores but I think they have limited time/resources for implementing it (they also locked async alpine because they already had issues with those x-ignores with the latest v1 release).

@danharrin
Copy link
Contributor

I'm going to stop using Async Alpine for this table component in Filament so that the nested components inside of it don't break. We can't upgrade Async Alpine to any new versions because there are breaking changes which we haven't had time to investigate. We may attempt an upgrade to v2 in the next major version of Filament but this is currently low priority as it does not really deliver benefits for our users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants