Skip to content

Commit

Permalink
Pass visit to onFinish() callback
Browse files Browse the repository at this point in the history
  • Loading branch information
reinink committed Jan 12, 2021
1 parent df829aa commit 896c53b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/inertia/src/inertia.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default {
visit.cancelled = cancelled
visit.interrupted = interrupted
fireFinishEvent(visit)
visit.onFinish()
visit.onFinish(visit)
}
},

Expand All @@ -164,7 +164,7 @@ export default {
visit.cancelled = false
visit.interrupted = false
fireFinishEvent(visit)
visit.onFinish()
visit.onFinish(visit)
}
},

Expand Down

0 comments on commit 896c53b

Please sign in to comment.