Closed stijn26 closed 1 year ago
Hello!
Thanks for bringing this up. Could you provide a little more information on your use case?
What does the enum look like? What does your usage of the hook look like? I'm trying to synthesize a solution that will work correctly, as this condition could potentially cause some backward compatibility issues.
Hey @stijn26, quick ping here :)
I'm going to close this due to inactivity. If you decide to revisit it, I will reopen this.
Hi,
When using the mutate function with an enum, a payloadError is throwed because payload is evaluated to false, because the first element in an enum evaluates to 0.
For now we use a PLACEHOLDER value in our enum to work around the issue.