Replies: 5 comments 1 reply
-
Hi, I have the same problem but I haven't the type on the property. Can you share how did you make it work? |
Beta Was this translation helpful? Give feedback.
-
I don't think the wizard converts data, but it does use arrays to store state. Perhaps something is off there. |
Beta Was this translation helpful? Give feedback.
-
Here a test:
I can upload the image and I see the preview, but when I click "next" and then I go back, I get
And
|
Beta Was this translation helpful? Give feedback.
-
For mine, I send an ID in with the wizard component (since I'm always editing an existing entity in my wizard) and save it on the first step's state. Then in
It was converting to an array and giving the
I haven't had a chance to dig in too deep yet, but maybe the laravel-livewire-wizard package is setting that |
Beta Was this translation helpful? Give feedback.
-
I think that the problem is this related to this. In your case you can fix handling the id. in my case (images) I have to store them temporarly and save the path, so I'll have to do a garbage collector. :\ |
Beta Was this translation helpful? Give feedback.
-
I've got a typed property on a wizard step component and when that component is loaded when navigating between steps, I'm getting
Cannot assign array to property ...
.Is there a reason the wizard converts all properties to arrays? Or am I missing something to keep the defined types?
Thanks!
edit if I remove the type on the property, things seem to work fine (and it remains the proper type as I update and navigate between steps. 🤔
Beta Was this translation helpful? Give feedback.
All reactions