You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<div id="app" data-page='{"component":"Event","props":{"event":{"id":80,"title":"Birthday party","start_date":"2019-06-02","description":"Come out and celebrate Jonathan's 36th birthday party!"}},"url":"/events/80","version":"c32b8e4965f418ad16eaebba1d4e960f"}'></div>
29
+
<div id="app" data-page='{"component":"Event","props":{"errors":{},"event":{"id":80,"title":"Birthday party","start_date":"2019-06-02","description":"Come out and celebrate Jonathan's 36th birthday party!"}},"url":"/events/80","version":"c32b8e4965f418ad16eaebba1d4e960f"}'></div>
30
30
31
31
</body>
32
32
</html>
@@ -58,6 +58,7 @@ X-Inertia: true
58
58
{
59
59
"component": "Event",
60
60
"props": {
61
+
"errors": {},
61
62
"event": {
62
63
"id": 80,
63
64
"title": "Birthday party",
@@ -77,7 +78,7 @@ X-Inertia: true
77
78
Inertia shares data between the server and client via a page object. This object includes the necessary information required to render the page component, update the browser's history state, and track the site's asset version. The page object includes the following four properties:
78
79
79
80
1.`component`: The name of the JavaScript page component.
80
-
2.`props`: The page props (data).
81
+
2.`props`: The page props. Contains all of the page data along with an `errors` object (defaults to `{}` if there are no errors).
81
82
3.`url`: The page URL.
82
83
4.`version`: The current asset version.
83
84
5.`encryptHistory`: Whether or not to encrypt the current page's history state.
0 commit comments