Check on Response
being returned from form actions?
#12787
Labels
feature / enhancement
New feature or request
Milestone
Describe the problem
I have seen multiple instances of
json
being used to try and return data from a form action.This seems like a fairly easy mistake to make and the error is not all that helpful.
Describe the proposed solution
Check if the object returned from a form action is an instance of
Response
and give a more specific error if that is the case.Not sure about the exact wording. Was thinking about referencing that a "plain object" should be returned, but
devalue
can serialize some not so plain objects as well. Maybe the message could contain a very simple example as well.Alternatives considered
-
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: