Replies: 1 comment 1 reply
-
Probably :) Because it's not just enums. I think the best approach here would be to hook into Livewire's hydration/synths somehow. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If you use enum types on StepComponent class properties, you'll get an error when the step state is being set.
I run into this when I go to the next step, and then back (using
nextStepandpreviousStep). Example error:Part of my component:
Now this could be fixed by if we hook into the
setStepStatemethod, and check if any of the properties are enums. This concept code fixes the issue (part ofWizardComponent):Is this something that should work, or this a potential rabbit hole this package shouldn't get into? I could always remove the types and cast them later on.
I'd be willing to make a PR, but would understand it too if it is not wanted.
Beta Was this translation helpful? Give feedback.
All reactions