Skip to content
Discussion options

You must be logged in to vote

Hi,

This almost guaranteed has to do with the fact that the behaviour of this inside of an arrow function differs from the way a normal function is defined:

Since you are already using the arrow function syntax for your onSuccess callback, this is referring to the scope in which your Inertia.post was call is defined. It's likely that that scope, or one of the scopes surrounding that one, is a regular function, which is causing this to be 'rewritten', therefore losing the context that allows you to access myFunc…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bagoesz21
Comment options

Answer selected by claudiodekker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants