Form Helper signature documentation/warning? #488
claudiodekker
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
As can be seen here, some people run into trouble when using the form helper, as their options as 'ignored'. I've seen this happen once or twice before as well.
Simply put, this is happening because they are trying to apply the
manual visits
signature to theform helper
, of which the 2nd argument isn't 'data' but rather 'options' (the 3rd argument on manual visits), because unlikemanual visits
theform helper
is already aware of the data that's being submitted.As a result, when people try to use the form 'incorrectly', they still see the request passing through with the correct data, but they see their (3rd argument) options (e.g. event callbacks) being ignored, making them believe their code is correct but Inertia has broken behaviour.
Proposed Solutions
Beta Was this translation helpful? Give feedback.
All reactions