Pass data to widget from custom page

Hi,

I'm trying to pass custom variable to widget component like below, but keep getting this error

<x-filament-panels::page :widget-data="['shift' => $shift]">

"trim(): Argument #1 ($string) must be of type string, array given"

any help guys?
Was this page helpful?