In CreateXXXX resource page, does it support data reactivity between the page and a custom widget?
I have a CreatePost page, and in the getHeaderWidgets I created a widget for displaying the values from the CreatePost page mainly for providing preview of the contents before the user commits to save it.
In the docs, I have to use the CustomWidget::make( data here ) to pass the data between the Create page and the widget, however it doesnt support reactivity.
Does filament supports this or am I using the wrong tools or this use case?
2 Replies
I think you'll need Livewire events to coordinate between the page and the widget. They are separate Livewire components.
I'm not sure, but you may be able to use
#[Reactive]
for properties on the Widget component:
https://livewire.laravel.com/docs/nesting#reactive-propsAlright let me try that one, thank you!