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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Improve example integration with Laravel Livewire #1255

Conversation

iksaku
Copy link
Contributor

@iksaku iksaku commented May 3, 2021

The current draft works fine when integrated into "static" Livewire components, however, it doesn't work in cases where the Livewire component reloads its data, be it due to a component method, lifecycle hook or simply because the flow for the component includes an option to reset its data. Old data will be cached into TipTap and new data will not come.

I re-wrote the example to work in these cases, and also for it to be more aligned to Alpine's example, with the only difference that we'll now use Alpine as a proxy for Livewire<->TipTap communication.

If there are any questions, suggestions or jokes, feel free to let me know 馃槃

@hanspagel
Copy link
Contributor

Amazing! Thanks @iksaku! 馃檶

@hanspagel hanspagel merged commit bc78b8b into ueberdosis:main May 3, 2021
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.

None yet

2 participants