Access record from Tab Widget

Hi, I am trying to access the current record within a widget which is another tab on the infolist. I've tried adding public ?Model $record = null; within the widget class but it just returns null. I also tried passing it through the widget properties but couldn't get that to work. I was previously doing it by getting the url and getting the record ID from that but due to refreshing the widget using livewire after an action is performed this no longer works as the refresh url is different, something along the lines of .../livewire/refresh Any help is appreciated. Thanks
0 Replies
No replies yetBe the first to reply to this messageJoin