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

Fix Livewire issue #22

Merged
merged 5 commits into from
Apr 8, 2022
Merged

Fix Livewire issue #22

merged 5 commits into from
Apr 8, 2022

Conversation

tonysm
Copy link
Owner

@tonysm tonysm commented Apr 8, 2022

Fixed

  • Unset the RichText fields relationships on models bound to a Livewire component.

I've noticed that when the RichText model is present in a model's $relationships when that model is bound to a Livewire component, it breaks the dehydration of the component. I don't fully understand why that is (maybe it's because the RichText model overrides the __call method? Even though it passes it up again.) But it looks like unsetting the rich text relationships when the component is dehydration fixes the issue.

@tonysm tonysm merged commit 2953e7d into main Apr 8, 2022
@tonysm tonysm deleted the fix-livewire-issue branch April 8, 2022 19:29
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.

1 participant